]> Sergey Matveev's repositories - dotfiles.git/blobdiff - mutt/.mutt/muttrc
HI flag
[dotfiles.git] / mutt / .mutt / muttrc
index 84eaae406c9e24ac3859cdc9c5f63882b737916e..e22e9160a1e8713ecb9cb30ffec20bb6a2485c50 100644 (file)
-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 <F1> "<next-unread-mailbox><enter>" "Go to new mail"
+source ~/.mutt/useragent.rc
+
+macro index,pager,browser <F1> "<next-unread-mailbox><enter>"
 macro index <F5> ":set mbox_type = mbox\n" "mbox mailbox type"
+macro index S "<save-message>=spamdb<enter>"
 
-macro index <F8> "<shell-escape>mu find --clearlinks --format=links --linksdir=~/mail/search " "mu find"
-macro index <F9> "<change-folder-readonly>~/mail/search<enter>" "mu find results"
+macro index <F6> "<shell-escape>mu find --clearlinks --format=links --linksdir=/home/stargrave/mail/search " "mu find"
+macro index <F7> "<change-folder-readonly>~/mail/search<enter>" "mu find results"
+macro index <F8> "<change-folder-readonly>~/mail/search-sent<enter>" "mu find sent results"
 
 macro pager \cu |urlview\n
 
-macro index <F2> "<decrypt-copy>" "DC"
-macro pager <F2> "<decrypt-copy>" "DC"
+macro index \cb <decrypt-copy>
+macro pager \cb <decrypt-copy>
+
+macro index \ce <next-entry>
+macro index \cy <previous-entry>
+macro pager \ce <next-line>
+macro pager \cy <previous-line>
 
 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 <F2> ":source ~/.mutt/accounts/stargrave.org\n" "Profile: stargrave.org"
-macro index <F3> ":source ~/.mutt/accounts/stcnet.ru\n" "Profile: stcnet.ru"
-macro index <F4> ":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 <collapse-all>"
 
-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"`
 
-source ~/.mutt/accounts/stargrave.org
+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/rc
+source ~/.mutt/hooks.rc
+
+# set mime_forward = yes
+# set mime_forward_rest = yes