From 74a337a729f388fbc2e62f3e8fcc1e55e31a324d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 5 Aug 2014 17:57:41 +0400 Subject: [PATCH] Set charsets before reading alias files Convert alias files from $config_charset to the current charset. --- .muttrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.muttrc b/.muttrc index bf67fd2..a531173 100644 --- 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 -- 2.39.2