X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=mutt%2F.mutt%2Fmuttrc;h=889a4fc0e0dc73b3796b35e57a0ca841f1d73413;hb=HEAD;hp=8da23a01319d49c3090ec31265c9f19af35ae1b8;hpb=ebe2c16d00ce93e9c3fda22f2aa8db1391a9bfee;p=dotfiles.git diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc index 8da23a0..e22e916 100644 --- a/mutt/.mutt/muttrc +++ b/mutt/.mutt/muttrc @@ -1,88 +1,100 @@ -set folder = "~/mail" +set folder = ~/mail set mbox_type = maildir # set mbox_type = mbox set spoolfile = =mbox -set record = =sent-`date "+%y-%m"` +set record = =back-`date "+%y-%m"` set postponed = =postponed set certificate_file = ~/.mutt/certificates set net_inc = 1 set edit_headers = yes -set charset = "utf-8" +set charset = utf-8 set pager_stop = yes -set sort = "threads" -set sort_aux = "last-date-received" +set sort = threads +set sort_aux = last-date-received set pager_index_lines = 6 set timeout = 60 set rfc2047_parameters set reply_to = yes set fcc_clear = yes -set ssl_starttls = no +set ssl_force_tls = no +set user_agent = yes set signature = ~/.signature -set hostname = "stargrave.org" +set hostname = stargrave.org set realname = "Sergey Matveev" -set query_command="mu cfind --format=mutt-ab '%s'" +set query_command = "mu cfind --format=mutt-ab '%s'" set forward_format = "Fwd: %s" -set indent_string = ">" -set attribution = "*** %n [%{%Y-%m-%d %H:%M}]:" -set index_format = "%4C %Z[%1H] %{%m-%d} [%N] %-15.15L (%?l?%4l&%4c?)%?M?[#%02M]?%?Y?[%Y]? %s" +set date_format = "%Y-%m-%d %H:%M" +set index_format = "%4C %Z[%1H] %D [%N] %-15.15L (%?l?%4l&%4c?)%?M?[#%02M]?%?Y?[%Y]? %s" set pipe_decode = yes +set print_command = "cat > /tmp/mail-printed" +set attribution = "*** %n [%{%Y-%m-%d %H:%M}]:" +set forward_attribution_intro = "----- BEGIN %i -----" +set forward_attribution_trailer = "----- END %i -----" +set mail_check_stats +set folder_format="%3C %t %N [%3n|%3m] %D %f" + set crypt_protected_headers_write = yes -set print_command="cat > /tmp/mail-printed" +set crypt_opportunistic_encrypt = yes +set crypt_autosign = yes -macro index "" "Go to new mail" -macro index "mu find --clearlinks --format=links --linksdir=~/mail/search " "mu find" -macro index "~/mail/search" "mu find results" +source ~/.mutt/useragent.rc +macro index,pager,browser "" macro index ":set mbox_type = mbox\n" "mbox mailbox type" +macro index S "=spamdb" + +macro index "mu find --clearlinks --format=links --linksdir=/home/stargrave/mail/search " "mu find" +macro index "~/mail/search" "mu find results" +macro index "~/mail/search-sent" "mu find sent results" macro pager \cu |urlview\n + +macro index \cb +macro pager \cb + +macro index \ce +macro index \cy +macro pager \ce +macro pager \cy + alternative_order text/plain text/enriched text/html auto_view text/html unignore \ - Mail-Followup-To \ List-Id \ - Reply-To \ + Mail-Followup-To \ Mail-Reply-To \ - Organization \ + Message-Id \ OpenPGP \ + Organization \ + Reply-To \ Return-Path \ - X-Mailer \ User-Agent \ - Message-Id - -macro index ":source ~/.mutt/accounts/stargrave.org\n" "Profile: stargrave.org" -macro index ":source ~/.mutt/accounts/stcnet.ru\n" "Profile: stcnet.ru" -macro index ":source ~/.mutt/accounts/riseup.net\n" "Profile: riseup.net" - -alternates stargrave@stargrave.org junk@stargrave.org -mailboxes =mbox \ - =rss \ - =monitoring \ - =arbeit \ - =crypto \ - =debian \ - =gnu \ - =gnupg \ - =golang \ - =gopher \ - =guix \ - =spam \ - =suckless \ - =fbsd \ - =vim \ - =zfs \ - =zsh - -# set mime_forward = yes -# set mime_forward_rest = yes + X-Bogosity \ + X-Label \ + X-Mailer \ + X-Original-To fcc-hook .* $record - folder-hook . "set sort = threads; push " -folder-hook =rss "set sort = date" +source ~/.mutt/mailboxes.rc + +folder-hook =blog-comment "set sort = date" folder-hook =monitoring "set sort = date" -source ~/.mutt/monthly +set my_month_prev = `date -j -v -1m "+%y-%m"` +set my_month_curr = `date "+%y-%m"` + +mailboxes \ + =stcnet-$my_month_prev \ + =stcnet-$my_month_curr \ + =back-$my_month_prev \ + =back-$my_month_curr + +folder-hook =search-sent "set sort = date-sent" -source ~/.mutt/accounts/stargrave.org +source ~/.mutt/accounts/rc +source ~/.mutt/hooks.rc + +# set mime_forward = yes +# set mime_forward_rest = yes