]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/muttrc
lazyvim: absorb/update neotest
[dotfiles.git] / mutt / muttrc
index d4f9945c315a4b432dce9260d2f0219c8c0fa0ea..3bf0c5dbef34d0a5077b54dccd0ef3507bae8eb5 100644 (file)
@@ -1,18 +1,30 @@
+set my_config_dir = $XDG_CONFIG_HOME/mutt
+
 # general settings
-alternates samir.benmendil@.* ram-z@.* s.benmendil@.*
+alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com @rmz.io
+alternates -group me samir.benmendil@mailfence.com
+alternates -group me -group fpp samir@fppnt.com
+
+group -group fpp -rx @fppnt.com
+
 set mail_check = 0
-set envelope_from
+set use_envelope_from
 set forward_format = "Fwd: %s"
 set forward_quote = yes
 
+# ask to forward email as attachement
+set mime_forward = ask-no
+
 set edit_headers = yes   # more power
 set askcc        = yes   # ask until I have goobook completion in vim
 set editor       = vim   # d'uh
 set include      = yes   # don't ask, just do
-set date_format  = "!%b %d, %Y at %k:%M" # use 24-hour clock
+set delete       = yes   # don't ask, just do
+set date_format  = "!%b %d, %Y at %-H:%M" # use 24-hour clock
+unset signature  # don't try to include a signature
 
-# goobook
-set query_command = "goobook query '%s'"
+# send clacks
+my_hdr X-Clacks-Overhead: GNU Terry Pratchett
 
 # sort/threading
 set sort              = threads
@@ -22,54 +34,79 @@ set duplicate_threads = yes
 set collapse_unread   = no
 
 # lists
-subscribe ^chakra-.*@googlegroups.com
-subscribe clementine-player@googlegroups.com
+subscribe -group neovim      ^neovim.*github.com
+subscribe -group mutt        mutt-users@mutt.org
+subscribe -group zsh         zsh-users@zsh.org
+subscribe -group qutebrowser ^qutebrowser.*
+subscribe -group lug         @mailman.lug.org.uk
+subscribe -group googlegroup @googlegroups.com$
+
+# performance tuning
+set read_inc  = 1000   # nb of messages read before printing status
+set write_inc = 1000   # nb of messages written before printing status
+set time_inc  = 100    # time interval (ms) between status print
 
 # look and feel
 set pager_index_lines = 12
 set pager_context     = 5
 set pager_stop        = yes   # don't jump to next message
+set resolve           = yes   # jump when flagging
 set menu_scroll       = yes
+set wrap              = 78
+set reflow_wrap       = 78    # reflow received format=flowed msgs
+set text_flowed       = yes   # write f=f messages
 set smart_wrap        = yes   # wrap at word boundaries
 set tilde             = yes   # fills end of messages with tilde
 set markers           = no
+set mark_old          = no    # leave messages as new if unread
 set status_on_top     = yes   # also help on bottom
-set index_format="%Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
-set index_format="[%Z] %{%e/%m} %-20.20L  %?M?+ ?%s"
+set wait_key          = no    # don't wait for enter key
+
+set index_format="[%Z] %-6@date@ %15.15L  %?M?+ ?%s"
+index-format-hook date "~d<1d"  "%[%H:%M]"
+index-format-hook date "~d<1y"  "%[%e/%m]"
+index-format-hook date "~A"     "%[%m/%Y]"
 
 # header
 ignore *
-unignore from: to: cc: date: subject:
+unignore from: to: cc: date: subject: x-clacks-overhead:
 unhdr_order *
-hdr_order from: to: cc: date: subject:
-
-# sidebar
-set sidebar_width = 14
-set sidebar_visible = yes
-set sidebar_delim = '|'
-set sidebar_sort = no
-set sidebar_shortpath = yes
-set sidebar_format = "%B%* %?N?%N?"
+hdr_order from: to: cc: date: subject: x-clacks-overhead:
 
 # deal with crap
-set mailcap_path = ~/.mutt/mailcap
-auto_view text/html                                     # view html automatically
-alternative_order text/plain text/enriched text/html    # save html for last
-
-# IMAP: offlineimap
-set folder       = "~/mail"         # mail folder
-set spoolfile    = "+gmail/inbox"   # set inbox
-unset record                        # do not move sent msgs to a folder, gmail does that
-unset move                          # do not move read msgs, gmail does that
-set postponed    = "+gmail/drafts"  # drafts folder
+set mailcap_path = $my_config_dir/mailcap
+auto_view text/html      # view html automatically
+auto_view text/calendar  # view ical automatically
+auto_view application/gzip application/zip  # for dmarc reports
+alternative_order text/calendar text/plain text/enriched text/html  # view ical first, html last
+
+# IMAP: mbsync
+set folder       = "$MAILDIR"       # mail folder
 set header_cache = "~/.cache/mutt"  # cache headers for speedss
-source ~/.mutt/mailboxes            # source mailboxes generetated by offlineimap
 
-# SMTP: msmtp (with queue)
-set sendmail = ~/.msmtp/msmtpq      # use msmtp message queue
-set sendmail_wait = -1              # fork sendmail to the background
-set send_charset="us-ascii:utf-8"   # only use ascii and utf8
+set send_charset="utf-8"            # only utf8
+
+# GnuPG
+set crypt_replyencrypt       = yes  # encrypt replies to encrypted messages
+set crypt_replysign          = yes  # sign replies to signed messages
+set crypt_replysignencrypted = yes  # you get the idea
+set crypt_verify_sig         = yes  # verify signatures
+set pgp_long_ids             = yes  # use 64 bit key IDs
+set pgp_mime_auto            = no   # don't fallback to inline mime
+set pgp_use_gpg_agent        = yes  # don't ask for passwords
+source gpg
+
+group -group nosign -rx .*@bitbucket.org
+group -group nosign -rx jira@.*atlassian.net
+group -group nosign -rx .*@incoming.gitlab.com
+group -group nosign -rx .*@reply.github.com
+group -group nosign -rx .*@googlegroups.com
+group -group nosign -rx .*@st.com
+send-hook .            "set crypt_autosign = yes"
+send-hook "%t nosign"  "set crypt_autosign = no"
+
+source hooks
+source bindings
+source colors/nord         # color theme
 
-source ~/.mutt/hooks
-source ~/.mutt/bindings
-source ~/.mutt/colors         # color theme
+source accounts/mailfence  # source default account