[notmuch] Cleaning up checkmail script and new afew rules

This commit is contained in:
2020-09-22 17:33:50 -04:00
parent 5fe79fdde2
commit d99b87c534
2 changed files with 33 additions and 13 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
afew --m --new
afew -m -n
mbsync -a
notmuch new
afew --tag --new
afew -t -n
exit 0

View File

@ -28,32 +28,52 @@ message = sentry error
# Jira tag as Jira
[Filter.3]
query = 'from:jira@15five-dev.atlassian.net'
tags = +jira;-inbox;+15five
tags = +jira;-inbox;+15five;-unread
message = jira message
# CMT
# Orgmode
[Filter.4]
query = 'to:emacs-orgmode@gnu.org'
tags = +orgmode;-inbox;-unread
message = cmt uucc message
message = orgmode message
# Delete Office465/Microsoft messages
# Delete some spam
[Filter.5]
query = '\'Office365 Message Center\' via Developers'
tags = +ms;+ffjunk;-inbox;-new;-unread;+uucc
message = cmt uucc message
query = '\'Office365 Message Center\' via Developers OR from:admin@darntough.com OR from:govdelivery@subscriptions.defense.gov OR from:notifications@facebookmail.com OR from:MPP@em.home.dell.com OR from:info@jaimeharrison.com'
tags = +spam;-inbox;-unread
message = spam message
# Tag interview emails
[Filter.6]
query = 'subject:Interview'
tags = +interview;-inbox;-new;-unread
tags = +interview;-inbox;-unread
message = personal message
# F5bot - not quite spam, but I don't want to see it
[Filter.8]
query = 'from:admin@f5bot.com'
tags = +f5;-inbox;-unread
message = f5 message
# Emacs Conf
[Filter.9]
query = 'to:emacsconf-discuss@gnu.org'
tags = +emacsconf;-inbox
message = emacsconf message
# Github notifications
[Filter.10]
query = 'from:notifications@github.com'
tags = +github;-inbox
message = github message
[MailMover]
folders = Inbox Junk
rename = False
max_age = 15
folders = Inbox Junk Archive Sent
rename = True
max_age = 45
Inbox = 'tag:spam':Junk 'NOT tag:inbox':Archive 'tag:deleted':Trash 'tag:sent':Sent
Archive = 'tag:inbox':Inbox 'tag:deleted':Trash
Sent = 'tag:inbox':Inbox 'tag:deleted':Trash
Junk = 'NOT tag:spam AND tag:inbox':Inbox 'NOT tag:spam':Archive
# what's still new goes into the inbox