]> git.phdru.name Git - dotfiles.git/blobdiff - .muttrc
.muttrc: Fix quoting in a multiline hook
[dotfiles.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index 3659ad160b31d03d4098bbc5906d47e865be375b..249d81579a129957127052e7d49ede73c481b56a 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -91,6 +91,7 @@ set suspend=no                   # Do not suspend on Ctrl+Z
 set tilde                        # Indicate empty lines in the pager.
 set tmpdir=~/tmp                 # Temporary files aren't stored in public places.
 set use_domain=no                # Don't qualify local addresses with $domain
+set use_envelope_from=yes
 set use_ipv6=no                  # Speed up DNS
 set wait_key=no                  # Do not wait for a key after running external programs, pipes
 
@@ -163,9 +164,9 @@ my_hdr X-Operating-System: Debian GNU/Linux
 #       lists <list-name> [ <list-name> ... ]
 
 subscribe (python-(announce|dev|ideas)|.*-(list|sig))@python\.org \
-   core-workflow@python\.org \
-   .*@moderators\.isc\.org .*@lists\.sourceforge\.net \
+   core-workflow@python\.org .*@moderators\.isc\.org \
    (durus|quixote)-users@mems-exchange\.org pysqlite@lists\.initd\.org \
+   .*@vex.net .*@lists\.sourceforge\.net \
    .*@googlegroups\.com mlug@unixcenter\.ru
 
 #lists
@@ -180,6 +181,7 @@ subscribe (python-(announce|dev|ideas)|.*-(list|sig))@python\.org \
 
 # Restore defaults
 folder-hook .* "\
+   set envelope_from_address="phd@phdru.name"; \
    my_hdr From: Oleg Broytman <phd@phdru.name>; \
    my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
    my_hdr X-Url: http://phdru.name/; \
@@ -237,9 +239,13 @@ fcc-hook .* =sent-mail
 
 # Restore defaults
 send-hook .* "\
+   set envelope_from_address="phd@phdru.name"; \
+   set followup_to=yes; \
    my_hdr From: Oleg Broytman <phd@phdru.name>; \
    my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
    my_hdr X-Url: http://phdru.name/; \
+   unmy_hdr Mail-Followup-To; \
+   unmy_hdr X-Skip-DKIM-Sig; \
    set signature==signatures/phd@phdru.name"
 
 send-hook "~L '@.*\.(r|s)u$'" "\
@@ -247,24 +253,34 @@ send-hook "~L '@.*\.(r|s)u$'" "\
    my_hdr Reply-To: Олег Бройтман <phd@phdru.name>; \
    set signature='iconv -f koi8-r ~/mail/signatures/phd@phdru.name-ru|'"
 
-send-hook "~L '@(mail|list|inbox|bk)\.ru'" "\
+send-hook "~L '@(mail|list|inbox|bk|sweb|spaceweb|ulmart)\.ru'" "\
+   set envelope_from_address="phd@mail.ru"; \
+   my_hdr From: Олег Бройтман <phd@mail.ru>; \
    my_hdr Reply-To: Олег Бройтман <phd@mail.ru>; \
    my_hdr X-Url: http://my.mail.ru/mail/phd; \
    set signature='iconv -f koi8-r ~/mail/signatures/phd@mail.ru|'"
 
 send-hook "~L '(@|\.)(((ya|yandex|narod)\.ru)|(yandex\.com)|yandex-team\.ru)$'" "\
+   set envelope_from_address="phd2@yandex.ru"; \
    my_hdr From: Олег Бройтман <phd2@yandex.ru>; \
    my_hdr Reply-To: Олег Бройтман <phd2@yandex.ru>; \
    my_hdr X-Url: http://phd2.ya.ru/; \
    set signature='iconv -f koi8-r ~/mail/signatures/phd2@yandex.ru|'"
 
-send-hook ~u unmy_hdr Reply-To
-
 send-hook "~L python-announce-list@python\.org" "\
    set followup_to=no; \
    my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
    my_hdr Mail-Followup-To: Oleg Broytman <phd@phdru.name>, Python Mailing List <python-list@python.org>"
 
+send-hook "~L cheetahtemplate-announce@lists\.sourceforge\.net" "\
+   set followup_to=no; \
+   my_hdr Reply-To: Oleg Broytman <phd@phdru.name>; \
+   my_hdr Mail-Followup-To: Oleg Broytman <phd@phdru.name>, CheetahTemplate discussion <cheetahtemplate-discuss@lists.sourceforge.net>"
+
+send-hook ~u "\
+   unmy_hdr Reply-To; \
+   my_hdr X-Skip-DKIM-Sig: mailing list"
+
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 #
 # Key bindings
@@ -285,7 +301,7 @@ bind index,pager <Esc>S decode-save
 macro index C \
    <Home><change-folder><Enter> \
    "Go to the first folder with unread messages"
-macro pager C \
+macro pager,attach C \
    <exit><Home><change-folder><Enter> \
    "Go to the first folder with unread messages"
 
@@ -316,13 +332,13 @@ macro pager <Esc>z \
 macro index H \
    <Home><change-folder>!<Enter> \
    "Go to inbox"
-macro pager H \
+macro pager,attach H \
    <exit><Home><change-folder>!<Enter> \
    "Go to inbox"
 macro index M \
    <Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
-macro pager M \
+macro pager,attach M \
    <exit><Home><change-folder>=sent-mail<Enter> \
    "Go to sent-mail"
 
@@ -330,7 +346,7 @@ macro pager M \
 macro index Y \
    <Home><change-folder>=lists/python<Enter> \
    "Go to python"
-macro pager Y \
+macro pager,attach Y \
    <exit><Home><change-folder>=lists/python<Enter> \
    "Go to python"
 
@@ -338,13 +354,13 @@ macro pager Y \
 macro index A \
    <Home><change-folder>=stcnet<Enter> \
    "Go to stcnet inbox"
-macro pager A \
+macro pager,attach A \
    <exit><Home><change-folder>=stcnet<Enter> \
    "Go to stcnet inbox"
 macro index <Esc>a \
    <Home><change-folder>=sent-stcnet<Enter> \
    "Go to sent-stcnet"
-macro pager <Esc>a \
+macro pager,attach <Esc>a \
    <exit><Home><change-folder>=sent-stcnet<Enter> \
    "Go to sent-stcnet"
 
@@ -403,7 +419,7 @@ color tilde       blue           default
 color tree        blue           default
 
 # email
-color body        brightblue     default [-a-Z_0-9.+]+@[-a-Z_0-9.]+
+color body        brightmagenta  default [-a-Z_0-9.+]+@[-a-Z_0-9.]+
 
 # URLs
 color body        brightblue     default "(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>\"]+)[A-Za-z0-9/]"