X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.muttrc;h=1f3f6b98c9cc5533da9d18d7ad14e8da75d5cd06;hb=16862d6c73ccda3803e4618d16b080a90fe9d84f;hp=bf67fd23c652f1a7d9220fc4a23289e36fd5538d;hpb=b7029e025fda781a34ed68dbafec99dbd0c73f2c;p=dotfiles.git diff --git a/.muttrc b/.muttrc index bf67fd2..1f3f6b9 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 @@ -246,19 +246,19 @@ send-hook "~L '@.*\.(r|s)u$'" "\ my_hdr From: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ my_hdr Reply-To: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ set attribution='÷ %{%a, %d %b %Y × %I:%M:%S%p %Z} %f ÎÁÐÉÓÁÌ:'; \ - set signature==signatures/phd@phdru.name-ru" + set signature='iconv -f koi8-r ~/mail/signatures/phd@phdru.name-ru|'" send-hook "~L '@(mail|list|inbox|bk)\.ru'" "\ my_hdr From: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ my_hdr Reply-To: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ my_hdr X-Url: http://my.mail.ru/mail/phd; \ - set signature==signatures/phd@mail.ru" + set signature='iconv -f koi8-r ~/mail/signatures/phd@mail.ru|'" send-hook "~L '(@|\.)(((ya|yandex|narod)\.ru)|(yandex\.com)|yandex-team\.ru)$'" "\ my_hdr From: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ my_hdr Reply-To: ïÌÅÇ âÒÏÊÔÍÁÎ ; \ my_hdr X-Url: http://phd2.ya.ru/; \ - set signature==signatures/phd2@yandex.ru" + set signature='iconv -f koi8-r ~/mail/signatures/phd2@yandex.ru|'" send-hook ~u unmy_hdr Reply-To