aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/aerc
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-05-15 20:03:30 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-05-15 20:16:37 -0500
commit5bf571df14cd2ed7cf6ca6ecadc26da53d61af06 (patch)
tree47942cf31b8fb04a35eb7cb6406117f94a5f2b77 /aerc
parent69e420c803099db126fffd3ca4bac5e396da4e1d (diff)
feat(mail): move all mail stuff inside notmuch hooks
Diffstat (limited to 'aerc')
-rw-r--r--aerc/.config/aerc/accounts.conf4
-rw-r--r--aerc/.config/aerc/aerc.conf4
2 files changed, 5 insertions, 3 deletions
diff --git a/aerc/.config/aerc/accounts.conf b/aerc/.config/aerc/accounts.conf
index d02c81a..372af46 100644
--- a/aerc/.config/aerc/accounts.conf
+++ b/aerc/.config/aerc/accounts.conf
@@ -8,12 +8,12 @@ folders-sort = INBOX,Sent,Drafts,Junk,Trash,Archive
[porkbun]
maildir-account-path = porkbun
-check-mail-cmd = mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc porkbun
+check-mail-cmd = MAILDIR=porkbun notmuch new
from = Toby Vincent <tobyv@tobyvin.dev>
address-book-cmd="grep -iPm 100 --color=never %s /home/tobyv/.local/share/mail/porkbun/addressbook.tsv"
[gmail]
maildir-account-path = gmail
-check-mail-cmd = mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail
+check-mail-cmd = MAILDIR=gmail notmuch new
from = Toby Vincent <tobyv13@gmail.com>
address-book-cmd="grep -iPm 100 --color=never %s /home/tobyv/.local/share/mail/gmail/addressbook.tsv"
diff --git a/aerc/.config/aerc/aerc.conf b/aerc/.config/aerc/aerc.conf
index dc4b1ec..c440faf 100644
--- a/aerc/.config/aerc/aerc.conf
+++ b/aerc/.config/aerc/aerc.conf
@@ -44,4 +44,6 @@ application/pdf=pdftotext - -l 10 -nopgbrk -q - | fmt -w 100
image/* = catimg -w$(tput cols) -
[hooks]
-flag-changed = systemctl --user --no-block start mbsync@$AERC_ACCOUNT:$AERC_FOLDER.service
+mail-added = mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc --push-new $AERC_ACCOUNT:$AERC_FOLDER &
+mail-delete = mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc --push-delete $AERC_ACCOUNT:$AERC_FOLDER &
+flag-changed = mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc --push-flags $AERC_ACCOUNT:$AERC_FOLDER &