mutt to xdg spec
[dotfiles.git] / email / .config / mutt / muttrc
similarity index 79%
rename from email/.mutt/muttrc
rename to email/.config/mutt/muttrc
index 6dd6c09..98f54ca 100644 (file)
@@ -5,24 +5,24 @@ set use_from=yes
 set reverse_name=yes
 set envelope_from=yes
 set mbox_type=Maildir
-set folder=~/.mutt/mail
+set folder=~/.local/share/offlineimap/mail
 set spoolfile=+/INBOX/
 set record=+/Sent/
 set postponed=+/Drafts/
 set mask="!^\\.[^.]"
-source ~/.mutt/mailboxes
+source ~/.local/share/offlineimap/mailboxes
 
 # Receiving, sending and searching
-set sendmail="/home/mrl/.mutt/checkattach.sh msmtp -C /home/mrl/.config/msmtp/config"
+set sendmail="/home/mrl/.config/mutt/checkattach.sh msmtp -a net"
 set send_charset="us-ascii:utf-8"
-macro index,pager $ "<shell-escape>/home/mrl/.mutt/force_sync.sh<enter><sync-mailbox>" "Force refresh"
+macro index,pager $ "<shell-escape>/home/mrl/.config/mutt/force_sync.sh<enter><sync-mailbox>" "Force refresh"
 macro attach B "<pipe-entry>firefox \"data:text/html;base64,$(base64 -w 0 <&0)\"<enter>"
 
 # Set the correct msmtp account for the different addresses
 send2-hook '~f mart@martlubbers.net'\
-       'set sendmail="msmtp -C /home/mrl/.config/msmtp/config -a net"'
+       'set sendmail="/home/mrl/.config/mutt/checkattach.sh msmtp -a net"'
 send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl))'\
-       'set sendmail="msmtp -C /home/mrl/.config/msmtp/config -a ru"'
+       'set sendmail="/home/mrl/.config/mutt/checkattach.sh msmtp -a ru"'
 
 # Macro for switching to the ru address
 macro compose <esc>2 "<esc>f^UMart Lubbers <mart@cs.ru.nl><enter>"
@@ -30,8 +30,6 @@ macro compose <esc>2 "<esc>f^UMart Lubbers <mart@cs.ru.nl><enter>"
 send2-hook '((~f m.lubbers@cs.ru.nl)|(~f m.lubbers@science.ru.nl)|(~f mart@cs.ru.nl)) (~g|~G)'\
        'push <pgp-menu>c'
 
-#folder-hook . push "<delete-pattern>~=<enter>$"
-
 # Key bindings
 bind index gg first-entry
 bind index G last-entry
@@ -60,7 +58,7 @@ set editor=vim
 set duplicate_threads=yes
 ignore headers *
 unignore headers from to subject date cc
-set mailcap_path=~/.mutt/mailcap
+set mailcap_path=~/.config/mutt/mailcap
 set mailcap_sanitize=yes
 
 # w3m --dump
@@ -92,13 +90,13 @@ macro index,pager A \
     "add the sender email address to khard"
 
 # sidebar
-source ~/.mutt/sidebar.muttrc
+source ~/.config/mutt/sidebar.muttrc
 
 # notmuch
-source ~/.mutt/notmuch.muttrc
+source ~/.config/mutt/notmuch.muttrc
 
 # Crypto
-source ~/.mutt/gpg.muttrc
+source ~/.config/mutt/gpg.muttrc
 
 # Colors
-source ~/.mutt/colors.muttrc
+source ~/.config/mutt/colors.muttrc