|
@@ -63,11 +63,11 @@ syncandnotify() { |
|
|
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) |
|
|
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) |
|
|
case 1 in |
|
|
case 1 in |
|
|
$((newcount > 5)) ) |
|
|
$((newcount > 5)) ) |
|
|
echo "$newcount new mail for $2." |
|
|
|
|
|
|
|
|
echo "$newcount new mail for $2." >/dev/tty |
|
|
[ -z "$MAILSYNC_MUTE" ] && notify "New Mail!" "📬 $newcount new mail(s) in \`$2\` account." |
|
|
[ -z "$MAILSYNC_MUTE" ] && notify "New Mail!" "📬 $newcount new mail(s) in \`$2\` account." |
|
|
;; |
|
|
;; |
|
|
$((newcount > 0)) ) |
|
|
$((newcount > 0)) ) |
|
|
echo "$newcount new mail for $2." |
|
|
|
|
|
|
|
|
echo "$newcount new mail for $2." >/dev/tty |
|
|
[ -z "$MAILSYNC_MUTE" ] && |
|
|
[ -z "$MAILSYNC_MUTE" ] && |
|
|
for file in $new; do |
|
|
for file in $new; do |
|
|
# Extract and decode subject and sender from mail. |
|
|
# Extract and decode subject and sender from mail. |
|
|