AutoYADM commit: 2025-03-14 17:30:06

This commit is contained in:
Daniel Fichtinger 2025-03-14 17:30:06 -04:00
parent 1cea0f4978
commit 03af83946c
4 changed files with 11 additions and 21 deletions

View file

@ -1,15 +0,0 @@
#!/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

View file

@ -50,3 +50,5 @@
.notmuch-config
.notmuch
.config/imapnotify
.config/mail
.config/afew

View file

@ -5,10 +5,11 @@ path=/home/fic/.mail
[user]
name=Daniel Fichtinger
primary_email=daniel@ficd.ca
other_email=18daf3@queensu.ca; fichtinger.d@queensu.ca
other_email=18daf3@queensu.ca;fichtinger.d@queensu.ca;ficcdaf@proton.me;
[new]
tags=new;inbox;unread;
tags=new
# tags=new;inbox;unread;
# tags=unread;inbox;sent;
# ignore=

View file

@ -1,6 +1,8 @@
#!/bin/sh
notmuch tag +school -new -- "path:school/**"
notmuch tag -inbox -new +sent from:daniel@ficd.ca or from:fichtinger.d@queensu.ca or from:18daf3@queensu.ca or from:ficcdaf@proton.me
# notmuch tag +inbox -new -- "path:*/INBOX/*"
notmuch tag +personal -new -- "path:personal/**"
# notmuch tag +school -new -- "path:school/**"
# notmuch tag -inbox -new +sent from:daniel@ficd.ca or from:fichtinger.d@queensu.ca or from:18daf3@queensu.ca or from:ficcdaf@proton.me
# # notmuch tag +inbox -new -- "path:*/INBOX/*"
# notmuch tag +personal -new -- "path:personal/**"
afew --tag --new