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

View file

@ -18,3 +18,14 @@ from = Daniel Fichtinger <fichtinger.d@queensu.ca>
default = INBOX
copy-to = Sent
signature-file = /home/fic/mail/fichtinger.d@queensu.ca.sig
[Proton-Local]
source = notmuch://~/.mail/
query-map = ~/.config/aerc/map.conf
outgoing = smtp+plain://daniel%40ficd.ca@127.0.0.1:1025
outgoing-cred-cmd = pass show proton/bridge
default = INBOX
from = Daniel Fichtinger <daniel@ficd.ca>
copy-to = Sent
cache-headers = true
signature-file = /home/fic/mail/daniel@ficd.ca.sig

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

1
.config/aerc/map.conf Normal file
View file

@ -0,0 +1 @@
Inbox=tag:inbox and not tag:archived and not tag:deleted