]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/muttrc
offlineimap: remove since superseded by isync
[dotfiles.git] / mutt / muttrc
index 9c19c8648cc461476955ff84546025a05b31a15d..e7b41ba63bd41182da382b4368069a0ad74513e2 100644 (file)
@@ -1,3 +1,5 @@
+set my_config_dir = $XDG_CONFIG_HOME/mutt
+
 # general settings
 alternates -group me samir.benmendil@gmail.com ram-z@hotmail.com @rmz.io
 alternates -group me -group chakra ram-z@chakra chakra@rmz.io
@@ -69,18 +71,18 @@ unhdr_order *
 hdr_order from: to: cc: date: subject: x-clacks-overhead:
 
 # deal with crap
-set mailcap_path = ~/.mutt/mailcap
+set mailcap_path = $my_config_dir/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 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
 set postponed    = "+gmail/drafts"  # drafts folder
 set header_cache = "~/.cache/mutt"  # cache headers for speedss
-source ~/.mutt/mailboxes            # source mailboxes generetated by offlineimap
+source $my_config_dir/mailboxes            # source mailboxes generetated by offlineimap
 
 # SMTP: msmtp
 set sendmail = /usr/bin/msmtp       # use msmtp
@@ -101,6 +103,6 @@ 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/badfox         # color theme
+source $my_config_dir/hooks
+source $my_config_dir/bindings
+source $my_config_dir/colors/badfox         # color theme