diff --git a/bin/mailsync b/bin/mailsync index b6be42f..54842ef 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -14,14 +14,15 @@ else notify() { notify-send "mutt-wizard" "📬 $2 new mail(s) in \`$1\` account." ;} fi -echo " 🔃" > /tmp/imapsyncicon +echo " 🔃" > /tmp/imapsyncicon_$USER pkill -RTMIN+12 i3blocks # Run mbsync. You can feed this script different settings. accounts=$(ls "$HOME/.local/share/mail" | grep """$@") echo "$accounts" | xargs --max-procs=4 -n 1 -I account mbsync -V account -rm -f /tmp/imapsyncicon +rm -f /tmp/imapsyncicon_$USER + pkill -RTMIN+12 i3blocks # Check all accounts/mailboxes for new mail. Notify if there is new content. diff --git a/bin/mw b/bin/mw index 4ec5747..17412b0 100755 --- a/bin/mw +++ b/bin/mw @@ -58,6 +58,7 @@ Slave :$title-local: Patterns * !\"[Gmail]/All Mail\" Create Both SyncState * +MaxMessages $maxmes # End profile " @@ -136,7 +137,7 @@ askinfo() { \ IFS=, read -r service imap iport smtp sport </dev/null || maxmes="0" getpass getprofiles mkdir -p "$muttdir" "$accdir" "$cachedir/$title/bodies" "$HOME/.config/msmtp"