diff --git a/config/afew/config b/config/afew/config index d5c3794..e5b25f8 100644 --- a/config/afew/config +++ b/config/afew/config @@ -1,9 +1,5 @@ [SpamFilter] [KnownSpammers] -[Filter.0] -message = SPAM should not go to inbox -query = tag:spam -tags = -new [FolderNameFilter] folder_blacklist = Inbox Sent Drafts Trash diff --git a/config/afew/spam_filter.py b/config/afew/spam_filter.py index a4d3412..ce6b838 100644 --- a/config/afew/spam_filter.py +++ b/config/afew/spam_filter.py @@ -2,6 +2,18 @@ from afew.filters.BaseFilter import Filter from afew.FilterRegistry import register_filter spammers = """ +nsitysim.com +onlinepublishers.co +ijeert.com +eonlinepublishers.com +journalsres.org +gniindia.org +molbio2019.com +itise.org +iacrlrd2019.org +hspcorporation.org +peerreviewjournal.com +2019cmcb.com iarjset.com ibc-congress2019.com drugtech-2018.com diff --git a/notmuch-hooks/post-new b/notmuch-hooks/post-new index 66880bb..d91d452 100755 --- a/notmuch-hooks/post-new +++ b/notmuch-hooks/post-new @@ -3,3 +3,4 @@ afew --tag --new notmuch search tag:new | cut -d' ' --complement -f1 | xargs -0 --no-run-if-empty notify-send notmuch tag -new +unread -- tag:new +notmuch tag -new -unread -- tag:spam