more adherence to standards
authorMart Lubbers <mart@martlubbers.net>
Thu, 17 Jan 2019 06:57:07 +0000 (07:57 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 17 Jan 2019 06:57:07 +0000 (07:57 +0100)
email/.config/mutt/muttrc
email/.config/notmuch/config
email/.config/offlineimap/config
email/.local/bin/checkattach.sh [moved from email/.config/mutt/checkattach.sh with 100% similarity]
email/.local/bin/newmail.sh [moved from email/.config/offlineimap/newmail.sh with 60% similarity]
email/.local/bin/sync_mail.sh [moved from email/.config/mutt/force_sync.sh with 100% similarity]

index 98f54ca..4312542 100644 (file)
@@ -13,16 +13,16 @@ set mask="!^\\.[^.]"
 source ~/.local/share/offlineimap/mailboxes
 
 # Receiving, sending and searching
-set sendmail="/home/mrl/.config/mutt/checkattach.sh msmtp -a net"
+set sendmail="checkattach.sh msmtp -a net"
 set send_charset="us-ascii:utf-8"
 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="/home/mrl/.config/mutt/checkattach.sh msmtp -a net"'
+       'set sendmail="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="/home/mrl/.config/mutt/checkattach.sh msmtp -a ru"'
+       'set sendmail="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>"
index e9150a6..f104340 100644 (file)
@@ -11,7 +11,7 @@
 # configured here named ".notmuch".
 #
 [database]
-path=/home/mrl/.mutt/mail
+path=/home/mrl/.local/share/offlineimap/mail
 
 # User configuration
 #
index 91354dc..f3a309f 100644 (file)
@@ -9,7 +9,7 @@ localrepository = Local
 remoterepository = Remote
 autorefresh = 0.5
 quick = 10
-postsynchook = ~/.config/offlineimap/newmail.sh
+postsynchook = newmail.sh
 #proxy = SOCKS5:localhost:8008
 
 [Repository Local]
similarity index 60%
rename from email/.config/offlineimap/newmail.sh
rename to email/.local/bin/newmail.sh
index 84c30c6..8d8c35c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-newmail="$(find ~/.mutt/mail/INBOX/new/ -type f | wc -l)"
+newmail="$(find ~/.local/share/mutt/mail/INBOX/new/ -type f | wc -l)"
 if [ "$newmail" -ne 0 ]
 then
        notify-send "$newmail new emails!"