mutt to xdg spec
authorMart Lubbers <mart@martlubbers.net>
Wed, 16 Jan 2019 15:18:11 +0000 (16:18 +0100)
committerMart Lubbers <mart@martlubbers.net>
Wed, 16 Jan 2019 15:18:11 +0000 (16:18 +0100)
dirs.sh
email/.config/mutt/checkattach.sh [moved from email/.mutt/checkattach.sh with 100% similarity]
email/.config/mutt/colors.muttrc [moved from email/.mutt/colors.muttrc with 100% similarity]
email/.config/mutt/force_sync.sh [moved from email/.mutt/force_sync.sh with 100% similarity]
email/.config/mutt/gpg.muttrc [moved from email/.mutt/gpg.muttrc with 100% similarity]
email/.config/mutt/mailcap [moved from email/.mutt/mailcap with 100% similarity]
email/.config/mutt/muttrc [moved from email/.mutt/muttrc with 79% similarity]
email/.config/mutt/notmuch.muttrc [moved from email/.mutt/notmuch.muttrc with 100% similarity]
email/.config/mutt/sidebar.muttrc [moved from email/.mutt/sidebar.muttrc with 100% similarity]
email/.config/offlineimap/config
email/.config/offlineimap/newmail.sh [moved from email/.mutt/newmail.sh with 100% similarity]

diff --git a/dirs.sh b/dirs.sh
index bcf64f2..1828346 100644 (file)
--- a/dirs.sh
+++ b/dirs.sh
@@ -1,5 +1,4 @@
-mkdir -pv ~/.config/{khal,khard,vdirsyncer,todoman,notmuch,msmtp,offlineimap,dunst,tmux}
-mkdir -pv ~/.mutt
+mkdir -pv ~/.config/{mutt,khal,khard,vdirsyncer,todoman,notmuch,msmtp,offlineimap,dunst,tmux}
 mkdir -pv ~/.bash_completion.d
 mkdir -pv ~/.gnupg
 mkdir -pv ~/.vim/{ftplugin,after/ftplugin,autoload,bundle,spell,pack/plugins/{opt,start}}
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
index 621d9e4..91354dc 100644 (file)
@@ -1,6 +1,6 @@
 [general]
 pythonfile = ~/.config/offlineimap/offlineimap.py
-metadata = ~/.mutt/offlineimap_meta
+metadata = ~/.local/share/offlineimap
 accounts = net
 ui = blinkenlights
 
@@ -9,12 +9,12 @@ localrepository = Local
 remoterepository = Remote
 autorefresh = 0.5
 quick = 10
-postsynchook = /home/mrl/.mutt/newmail.sh
+postsynchook = ~/.config/offlineimap/newmail.sh
 #proxy = SOCKS5:localhost:8008
 
 [Repository Local]
 type = Maildir
-localfolders = ~/.mutt/mail
+localfolders = ~/.local/share/offlineimap/mail
 
 [Repository Remote]
 type = IMAP
@@ -29,9 +29,9 @@ holdconnectionopen = yes
 
 [mbnames]
 enabled = yes
-filename = ~/.mutt/mailboxes
+filename = ~/.local/share/offlineimap/mailboxes
 header = "mailboxes "
-peritem = "~/.mutt/mail/%(foldername)s/"
+peritem = "~/.local/share/offlineimap/mail/%(foldername)s/"
 sep = " "
 footer = "\n"
 incremental = yes