From bf609ca894ad173351d5acd906a58fe390406508 Mon Sep 17 00:00:00 2001 From: NinKenDo64 Date: Sat, 27 Apr 2019 09:26:57 +1000 Subject: [PATCH 1/3] Corrected grammar "be found" line 139 --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 1ddd164..cbaaeaf 100755 --- a/bin/mw +++ b/bin/mw @@ -136,7 +136,7 @@ askinfo() { \ IFS=, read -r service imap iport smtp sport < Date: Fri, 26 Apr 2019 20:56:50 -0400 Subject: [PATCH 2/3] maxmessages option --- bin/mw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/mw b/bin/mw index cbaaeaf..6f3cd95 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 " @@ -155,6 +156,8 @@ EOF read -r login printf "\033[0m" [ -z "$login" ] && login="$fulladdr" + [ "$accounttype" = "offline" ] && printf "If you want to limit the number of messages kept offline to a number, enter that number below. If you do not want to limit your mail and would like \`mbsync\` to sync all mail, press enter without typing a number.\\n\t" && read -r maxmes + echo "$maxmes" | grep "[1-9]" >/dev/null || maxmes="0" getpass getprofiles mkdir -p "$muttdir" "$accdir" "$cachedir/$title/bodies" "$HOME/.config/msmtp" From 6faf22488ce0e9b5b58ad93bff7197a0156423b6 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 26 Apr 2019 21:19:11 -0400 Subject: [PATCH 3/3] to avoid user conflicts --- bin/mailsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mailsync b/bin/mailsync index 854a4ba..620557c 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -14,12 +14,12 @@ 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. mbsync -a "$@" -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.