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 default = INBOX
copy-to = Sent copy-to = Sent
signature-file = /home/fic/mail/fichtinger.d@queensu.ca.sig 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

View file

@ -46,3 +46,5 @@
.config/clipcat .config/clipcat
.config/aerc .config/aerc
.config/aerc .config/aerc
.mbsyncrc
.notmuch-config

32
.mbsyncrc Normal file
View file

@ -0,0 +1,32 @@
IMAPAccount protonmail
Host 127.0.0.1
Port 1143
User daniel@ficd.ca
PassCmd "pass show proton/bridge"
SSLType NONE
IMAPStore pm-remote
Account protonmail
MaildirStore pm-local
Path ~/.mail/
Inbox ~/.mail/INBOX/
Channel pm-inbox
Far :pm-remote:
Near :pm-local:
Patterns "INBOX"
Create Both
Expunge Both
SyncState *
Channel pm-sent
Far :pm-remote:"Sent"
Near :pm-local:"sent"
Create Both
Expunge Both
SyncState *
Group protonmail
Channel pm-inbox
Channel pm-sent

19
.notmuch-config Normal file
View file

@ -0,0 +1,19 @@
[database]
path=/home/fic/.mail
[user]
name=Daniel Fichtinger
primary_email=daniel@ficd.ca
[new]
tags=unread;inbox;sent;
ignore=
[search]
exclude_tags=deleted;spam;
[maildir]
synchronize_flags=true
[crypto]
gpg_path=gpg