]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/muttrc
env: use MAILDIR variable where possible
[dotfiles.git] / mutt / muttrc
index a5c2bdf09b95e7da6d3890e69c2d772acbc14f55..44cec6a54c84005fc933434f777090bee78f7273 100644 (file)
@@ -1,7 +1,8 @@
 # general settings
 alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com @rmz.io
-alternates -group me -group chakra ram-z@chakra-project.org chakra@rmz.io
+alternates -group me -group chakra ram-z@chakra chakra@rmz.io
 alternates -group me -group unimaas s.benmendil@student.maastrichtuniversity.nl
+alternates -group me -group cadscan sb@cad-scan.co.uk
 
 set mail_check = 0
 set envelope_from
@@ -17,6 +18,7 @@ set date_format  = "!%b %d, %Y at %-H:%M" # use 24-hour clock
 
 # send clacks
 my_hdr X-Clacks-Overhead: GNU Terry Pratchett
+my_hdr Bcc: sent@rmz.io
 
 # goobook
 set query_command = "goobook query '%s'"
@@ -36,6 +38,7 @@ subscribe -group sailfish    @lists.sailfishos.org
 subscribe -group neovim      ^neovim.*github.com
 subscribe -group mutt        mutt-users@mutt.org
 subscribe -group qutebrowser ^qutebrowser.*
+subscribe -group lug         @mailman.lug.org.uk
 
 # performance tuning
 set read_inc  = 1000   # nb of messages read before printing status
@@ -48,13 +51,16 @@ 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] %{%e/%m} %15.15L  %?M?+ ?%s"
 
 # header
 ignore *
@@ -68,7 +74,7 @@ auto_view text/html                                     # view html automaticall
 alternative_order text/plain text/enriched text/html    # save html for last
 
 # IMAP: offlineimap
-set folder       = "~/mail"         # mail folder
+set folder       = "$MAILDIR"       # 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
@@ -76,13 +82,11 @@ set postponed    = "+gmail/drafts"  # drafts 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
+# SMTP: msmtp
+set sendmail = /usr/bin/msmtp       # use msmtp
+set send_charset="utf-8"            # only utf8
 
 # GnuPG
-set crypt_autosign           = yes  # autosign messages
 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
@@ -92,6 +96,11 @@ set pgp_mime_auto            = no   # don't fallback to inline mime
 set pgp_use_gpg_agent        = yes  # don't ask for passwords
 source /usr/share/doc/mutt/samples/gpg.rc
 
+group -group nosign -rx .*@bitbucket.org
+group -group nosign -rx jira@.*atlassian.net
+send-hook .            "set crypt_autosign = yes"
+send-hook "%t nosign"  "set crypt_autosign = no"
+
 source ~/.mutt/hooks
 source ~/.mutt/bindings
-source ~/.mutt/colors         # color theme
+source ~/.mutt/colors/badfox         # color theme