]> git.phdru.name Git - dotfiles.git/blobdiff - .muttrc
Set charsets before reading alias files
[dotfiles.git] / .muttrc
diff --git a/.muttrc b/.muttrc
index 5073df3ce52128312b7a3e2246d9d54b73f1dd1b..a53117302aa9f1eb8e7064eb66a68614af937431 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -7,6 +7,14 @@
 #
 #set folder=~/Mail                # Where I keep my mailboxes; I am happy with this default
 
+# Character set for my terminal and config files (including aliases)
+set charset=`case "$LC_CTYPE" in *UTF-8) echo utf-8 ;; *) echo koi8-r ;; esac`
+set assumed_charset="us-ascii:utf-8:windows-1251:koi8-r" # Character sets for mail without a charset
+set config_charset=koi8-r # Character set for this config file and alias files
+set send_charset="us-ascii:iso-8859-1:koi8-r:windows-1251:utf-8" # Character sets for outgoing mail
+charset-hook x-unknown koi8-r    # Show unknow encoding as koi8-r
+charset-hook windows-1251 cp1251 # Autoconvert windoze encoding
+
 # source aliases
 source =mutt/aliases
 
@@ -33,14 +41,6 @@ mailboxes ! =admin =block =bulk =spam `echo $HOME/mail/lists/* | sed s#$HOME/mai
 set ascii_chars=`[ -n "$SLOWTERM" ] && echo yes || echo no` # Use ASCII instead of ACS chars for threads
 set arrow_cursor=`[ -n "$SLOWTERM" ] && echo yes || echo no` # Draw a simple cursor on slow terminals
 
-# Character set for my terminal
-set charset=`case "$LC_CTYPE" in *UTF-8) echo utf-8 ;; *) echo koi8-r ;; esac`
-set assumed_charset="us-ascii:utf-8:windows-1251:koi8-r" # Character sets for mail without a charset
-set config_charset=koi8-r # Character set for this config file and alias files
-set send_charset="us-ascii:iso-8859-1:koi8-r:windows-1251:utf-8" # Character sets for outgoing mail
-charset-hook x-unknown koi8-r    # Show unknow encoding as koi8-r
-charset-hook windows-1251 cp1251 # Autoconvert windoze encoding
-
 set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %s" # Somewhat different index format, which works nicely with mail lists.
 set pager_format="%4C %Z %[%b %d] %-15.15F (%4l) %s %* ---(%P)---" # Mostly match index_format
 
@@ -124,7 +124,7 @@ set pgp_use_gpg_agent
 ignore *                         # Ignore all lines by default
 
 # I do want to see these fields, though!
-unignore date from to x-original-to reply-to mail-followup-to cc \
+unignore date from reply-to mail-followup-to followup-to to x-original-to cc \
    newsgroups subject user-agent x-mailer x-url x-face
 
 # Default list of header fields to weed when displaying
@@ -139,7 +139,7 @@ unignore date from to x-original-to reply-to mail-followup-to cc \
 #       hdr_order <hdr1> [ <hdr2> ... ]
 #
 
-hdr_order date from to x-original-to reply-to mail-followup-to cc \
+hdr_order date from reply-to mail-followup-to followup-to to x-original-to cc \
    newsgroups subject user-agent x-mailer x-url x-face
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -264,7 +264,7 @@ 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>, Python Mailing List <python-list@python.org>; \
+   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>"
 
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -