Parcourir la source

Update mailsync to have it look in "inbox" and "Inbox"

Several email providers name their inbox folder with a wide usage of lowercase or uppercase letters (INBOX, inbox, Inbox). This commit makes mailsync.sh looks in different folders so that the notification works properly whenever there is a new email in INBOX, Inbox or inbox
pull/138/head
badmrfrosty il y a 5 ans
committed by GitHub
Parent
révision
f4874d08ed
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      etc/mailsync.sh

+ 1
- 1
etc/mailsync.sh Voir le fichier

@@ -31,7 +31,7 @@ pkill -RTMIN+12 i3blocks
for account in $(ls ~/.mail)
do
#List unread messages newer than last mailsync and count them
newcount=$(find ~/.mail/"$account"/INBOX/new/ -type f -newer ~/.config/mutt/etc/.mailsynclastrun 2> /dev/null | wc -l)
newcount=$(find ~/.mail/"$account"/INBOX/new/ ~/.mail/"$account"/inbox/new/ ~/.mail/"$account"/Inbox/new/ -type f -newer ~/.config/mutt/etc/.mailsynclastrun 2> /dev/null | wc -l)
if [ "$newcount" -gt "0" ]
then
notify "$account" "$newcount" &


Chargement…
Annuler
Enregistrer