-# ~/.mutt/ack-recipients
+# ~/.config/mutt/ack-recipients
#
# This file stores sha256sums of lower-cased e-mail addresses (no newline)
# instead of the addresses themselves as a measure to protect privacy. You can
macro index \ej "<enter-command> set my_editor=\$editor<enter><enter-command> source $my_confdir/batch-subject-editor|<enter><tag-prefix><edit><enter-command> set editor=\$my_editor<enter>" "change message subject"
-macro index,pager \er "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"~/.mutt/reuse-message \$my_editor\"<enter><reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
-macro index,pager \eg "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"~/.mutt/reuse-message \$my_editor\"<enter><group-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
-macro index,pager \el "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"~/.mutt/reuse-message \$my_editor\"<enter><list-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
+macro index,pager \er "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
+macro index,pager \eg "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><group-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
+macro index,pager \el "<enter-command> set my_editor=\$editor<enter><enter-command> set editor=\"$my_confdir/reuse-message \$my_editor\"<enter><list-reply><enter-command> set editor=\$my_editor<enter>" "invoke normal editor to edit message"
# override F6 from notmuch-mutt
macro index <F6> "<enter-command><enter>" "do nothing"
-macro attach e "<enter-command> set my_mailcap_path=\$mailcap_path<enter><enter-command> set mailcap_path=~/.mutt/mailcap.editing<enter><view-mailcap><enter-command> set mailcap_path=\$my_mailcap_path<enter>" "edit temporary file of attachment"
+macro attach e "<enter-command> set my_mailcap_path=\$mailcap_path<enter><enter-command> set mailcap_path=$my_confdir/mailcap.editing<enter><view-mailcap><enter-command> set mailcap_path=\$my_mailcap_path<enter>" "edit temporary file of attachment"
macro index,pager M "<enter-command> set my_weed=\$weed<enter><enter-command> set noweed<enter><pipe-message>formail -czx X-RSS-URL: | xargs sensible-browser<enter><enter-command> set weed=\$my_weed<enter>"
-macro index,pager <F10> "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> unset pipe_decode<enter><pipe-message>~/.mutt/viewmailattachments<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "view attachments in browser"
+macro index,pager <F10> "<enter-command> set my_pipe_decode=\$pipe_decode<enter><enter-command> unset pipe_decode<enter><pipe-message>$my_confdir/viewmailattachments<enter><enter-command> set pipe_decode=\$my_pipe_decode<enter>" "view attachments in browser"
# vim:sw=12:noet:sts=12:ts=12:ft=muttrc
--- /dev/null
+#
+# Mutt mailcap for backgrounding
+
+text/html; ~/.config/mutt/bgview-delay -t %t; description=Backgrounded run of run-mailcap with delayed cleanup
+application/*; ~/.config/mutt/bgview -t %t; description=Backgrounded run of run-mailcap
+image/*; ~/.config/mutt/bgview -t %t; description=Backgrounded run of run-mailcap
+audio/*; ~/.config/mutt/bgview -t %t; description=Backgrounded run of run-mailcap
+#multipart/related; ~/.config/mutt/viewmailattachments; description=Backgrounded loading of HTML message with related parts
--- /dev/null
+#
+# Mutt mailcap for dumping HTML to text
+#
+
+application/ms-tnef; ~/.config/mutt/container-extractor '%t'; description=Microsoft NIH TNEF
+application/x-zip-compressed; ~/.config/mutt/container-extractor '%t'; description=Compressed ZIP files
+application/zip; ~/.config/mutt/container-extractor '%t'; description=Compressed ZIP files
--- /dev/null
+application/pdf; ~/.config/mutt/bgview -t %t -v 'pdftool --file'
+application/*; ~/.config/mutt/bgview -t %t
+image/*; ~/.config/mutt/bgview -t %t
--- /dev/null
+#
+# Mutt mailcap for dumping HTML to text
+#
+
+text/html; ~/.config/mutt/htmldump --from %{charset}; description=HTML Text; nametemplate=%s.html; copiousoutput
--- /dev/null
+#
+# Mutt mailcap for iCalendar previewing/khal import
+
+text/calendar; ~/.config/mutt/icalparser; description=iCal details; copiousoutput; \
+ print=khal import '%s'
+application/ics; ~/.config/mutt/icalparser; description=iCal details; copiousoutput; \
+ print=khal import '%s'
# set send_multipart_alternative=yes
# set send_multipart_alternative_filter=/path/to/markdown2html.py
#
-# Optionally, Custom CSS styles will be read from `~/.mutt/markdown2html.css`,
+# Optionally, Custom CSS styles will be read from `~/.config/mutt/markdown2html.css`,
# if present.
#
# Requirements:
pre { padding: 0 1em; }
'''
-STYLESHEET = os.path.join(os.path.expanduser('~/.mutt'),
+STYLESHEET = os.path.join(os.path.expanduser('~/.config/mutt'),
'markdown2html.css')
if os.path.exists(STYLESHEET):
DEFAULT_CSS += open(STYLESHEET).read()
# from /usr/share/doc/mutt/examples/Muttrc.gz
-set my_confdir="$HOME/.mutt"
+set my_confdir="$HOME/.config/mutt"
set my_attribution_de="Hinsichtlich folgendem, das \"%n\" am %{%Y-%m-%d} um %{%H:%M Uhr %Z} schrieb:"
set my_attribution_en="Regarding the following, written by \"%n\" on %{%Y-%m-%d} at %{%H:%M Uhr %Z}:"
# mutt/sendmail – sendmail wrapper to enforce some checks on outgoing mails
#
# The script basically just creates a temporary file and then invokes any
-# executable scripts in ~/.mutt/sendmail-checks.d in run-parts style. They
-# receive the filename of a temporary file holding the message to be sent as
-# $1, followed by all recipients as determined by mutt.
+# executable scripts in ~/.config/mutt/sendmail-checks.d in run-parts style.
+# They receive the filename of a temporary file holding the message to be sent
+# as $1, followed by all recipients as determined by mutt.
#
-# Copyright © 2010 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
+# Copyright © 2010 martin f. krafft <madduck@madduck.net> Released under the
+# terms of the Artistic Licence 2.0
#
set -eux
-CHECKSDIR="$HOME/.mutt/sendmail-checks.d"
+CHECKSDIR="$HOME/.config/mutt/sendmail-checks.d"
SENDMAIL="/usr/sbin/sendmail -oem -oi"
TMPFILE=$(mktemp --tmpdir mutt-sendmail.XXXXXXXXXX.msg)
#
# ack-recipients – require double-checking of some recipients
#
-# refuse to send a mail as long as recipients listed in ~/.mutt/ack-recipients
-# are not individually "signed-off" by adding their e-mail addresses to the
-# X-Acked header. This header is removed from the mail before it is sent.
+# refuse to send a mail as long as recipients listed in
+# ~/.config/mutt/ack-recipients are not individually "signed-off" by adding
+# their e-mail addresses to the X-Acked header. This header is removed from
+# the mail before it is sent.
#
-# The file ~/.mutt/ack-recipients stores sha256sums of lower-cased e-mail
-# addresses (no newline) instead of the addresses themselves as a measure to
-# protect privacy. You can get new lines like this:
+# The file ~/.config/mutt/ack-recipients stores sha256sums of lower-cased
+# e-mail addresses (no newline) instead of the addresses themselves as a
+# measure to protect privacy. You can get new lines like this:
#
# printf my.new@e-mail.addre.ss | tr '[[:upper:]]' '[[:lower:]]' \
# | sha256sum | sed -e 's, .*,,'
#
set -eu
-CHECKLIST="$HOME/.mutt/ack-recipients"
+CHECKLIST="$HOME/.config/mutt/ack-recipients"
HEADER=X-Acked
ACKED_RCPTS=$(formail -czx ${HEADER}: < $1 | tr -d ',' | tr '[[:upper:]]' '[[:lower:]]')
MAILFILE="$1"; shift
*
+!/.config/mutt/ack-recipients
+!/.config/mutt/alternates
+!/.config/mutt/append-header
+!/.config/mutt/batch-subject-editor
+!/.config/mutt/bgrun
+!/.config/mutt/bgview
+!/.config/mutt/bgview-delay
+!/.config/mutt/bgview-fifo
+!/.config/mutt/colours
+!/.config/mutt/confvars
+!/.config/mutt/container-extractor
+!/.config/mutt/edit-header
+!/.config/mutt/filter-proxy
+!/.config/mutt/get-timestamp
+!/.config/mutt/.gitignore
+!/.config/mutt/headers
+!/.config/mutt/hooks
+!/.config/mutt/htmldump
+!/.config/mutt/icalparser
+!/.config/mutt/keybindings
+!/.config/mutt/list-mailboxes
+!/.config/mutt/lists
+!/.config/mutt/mailcap.backgrounding
+!/.config/mutt/mailcap.containers
+!/.config/mutt/mailcap.editing
+!/.config/mutt/mailcap.htmldump
+!/.config/mutt/mailcap.icalendar
+!/.config/mutt/markdown2html
+!/.config/mutt/mkconf
+!/.config/mutt/multipart-alternative
+!/.config/mutt/muttrc
+!/.config/mutt/remove-header
+!/.config/mutt/replace-header
+!/.config/mutt/reuse-message
+!/.config/mutt/sendmail
+!/.config/mutt/sendmail-checks.d/ack-recipients
+!/.config/mutt/sendmail-checks.d/check-attachments
+!/.config/mutt/sendmail-checks.d/no-local-recipients
+!/.config/mutt/sendmail-checks.d/pgp-mime-sig-description
+!/.config/mutt/sendmail-checks.d/prevent-draft
+!/.config/mutt/sendmail-checks.d/strip-offlineimap-header
+!/.config/mutt/sendmail-checks.d/strip-tickle-header
+!/.config/mutt/sendmail-checks.d/zzz_add-spool-bcc
+!/.config/mutt/sidebar
+!/.config/mutt/spam
+!/.config/mutt/supersede-header
+!/.config/mutt/viewmailattachments
!/.crontab.d/mutt
!/.gitignore.d/mutt
-!/.mutt
-!/.mutt/ack-recipients
-!/.mutt/alternates
-!/.mutt/append-header
-!/.mutt/batch-subject-editor
-!/.mutt/bgrun
-!/.mutt/bgview
-!/.mutt/bgview-delay
-!/.mutt/bgview-fifo
-!/.mutt/colours
-!/.mutt/confvars
-!/.mutt/container-extractor
-!/.mutt/edit-header
-!/.mutt/filter-proxy
-!/.mutt/get-timestamp
-!/.mutt/.gitignore
-!/.mutt/headers
-!/.mutt/hooks
-!/.mutt/htmldump
-!/.mutt/icalparser
-!/.mutt/keybindings
-!/.mutt/list-mailboxes
-!/.mutt/lists
-!/.mutt/mailcap.backgrounding
-!/.mutt/mailcap.containers
-!/.mutt/mailcap.editing
-!/.mutt/mailcap.htmldump
-!/.mutt/mailcap.icalendar
-!/.mutt/markdown2html
-!/.mutt/mkconf
-!/.mutt/multipart-alternative
-!/.mutt/muttrc
!/.muttprintrc
-!/.mutt/remove-header
-!/.mutt/replace-header
-!/.mutt/reuse-message
-!/.mutt/sendmail
-!/.mutt/sendmail-checks.d/ack-recipients
-!/.mutt/sendmail-checks.d/check-attachments
-!/.mutt/sendmail-checks.d/no-local-recipients
-!/.mutt/sendmail-checks.d/pgp-mime-sig-description
-!/.mutt/sendmail-checks.d/prevent-draft
-!/.mutt/sendmail-checks.d/strip-offlineimap-header
-!/.mutt/sendmail-checks.d/strip-tickle-header
-!/.mutt/sendmail-checks.d/zzz_add-spool-bcc
-!/.mutt/sidebar
-!/.mutt/spam
-!/.mutt/supersede-header
-!/.mutt/viewmailattachments
!/.var/mutt/.gitignore
!/.var/mutt/header_cache/.gitignore
+++ /dev/null
-#
-# Mutt mailcap for backgrounding
-
-text/html; ~/.mutt/bgview-delay -t %t; description=Backgrounded run of run-mailcap with delayed cleanup
-application/*; ~/.mutt/bgview -t %t; description=Backgrounded run of run-mailcap
-image/*; ~/.mutt/bgview -t %t; description=Backgrounded run of run-mailcap
-audio/*; ~/.mutt/bgview -t %t; description=Backgrounded run of run-mailcap
-#multipart/related; ~/.mutt/viewmailattachments; description=Backgrounded loading of HTML message with related parts
+++ /dev/null
-#
-# Mutt mailcap for dumping HTML to text
-#
-
-application/ms-tnef; ~/.mutt/container-extractor '%t'; description=Microsoft NIH TNEF
-application/x-zip-compressed; ~/.mutt/container-extractor '%t'; description=Compressed ZIP files
-application/zip; ~/.mutt/container-extractor '%t'; description=Compressed ZIP files
+++ /dev/null
-application/pdf; ~/.mutt/bgview -t %t -v 'pdftool --file'
-application/*; ~/.mutt/bgview -t %t
-image/*; ~/.mutt/bgview -t %t
+++ /dev/null
-#
-# Mutt mailcap for dumping HTML to text
-#
-
-text/html; ~/.mutt/htmldump --from %{charset}; description=HTML Text; nametemplate=%s.html; copiousoutput
+++ /dev/null
-#
-# Mutt mailcap for iCalendar previewing/khal import
-
-text/calendar; ~/.mutt/icalparser; description=iCal details; copiousoutput; \
- print=khal import '%s'
-application/ics; ~/.mutt/icalparser; description=iCal details; copiousoutput; \
- print=khal import '%s'