|
|
|
@ -40,7 +40,7 @@ messageinfo() {
|
|
|
|
|
syncandnotify() { |
|
|
|
|
acc="$(echo "$account" | sed "s/.*\///")" |
|
|
|
|
mbsync "$acc" |
|
|
|
|
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/[Ii][Nn][Bb][Oo][Xx]/new/* -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" 2>/dev/null)" |
|
|
|
|
new="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/$acc/*/new/* -type f -newer "${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" | grep -iv "trash" 2>/dev/null)" |
|
|
|
|
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) |
|
|
|
|
if [ "$newcount" -gt "0" ]; then |
|
|
|
|
for file in $new; do |
|
|
|
|