AutoYADM commit: 2025-03-13 22:15:06

This commit is contained in:
Daniel Fichtinger 2025-03-13 22:15:06 -04:00
parent d0d635507d
commit d49061e9b6
6 changed files with 80 additions and 0 deletions

15
.config/aerc/mail-sync.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
MBSYNC=$(pgrep mbsync)
NOTMUCH=$(pgrep notmuch)
if [ -n "$MBSYNC" -o -n "$NOTMUCH" ]; then
echo "Already running one instance of mbsync or notmuch. Exiting..."
exit 0
fi
echo "Deleting messages tagged as *deleted*"
notmuch search --format=text0 --output=files tag:deleted | xargs -0 --no-run-if-empty rm -v
mbsync -Va
notmuch new