Commit graph

4 commits

Author SHA1 Message Date
Marty Oehme 1311c30e84
mail: Fix mail filtering
Fixed correct filtering of inbox stuff in afew (moving archived mails
out of inbox, moving trash into GMail Trash).
2020-10-01 09:04:24 +02:00
Marty Oehme 3c84d6ae1a
mail: Improve inbox display in aerc and notmuch
Added filtering by dump tag *or* folder to afew so that incoming mail
should automatically be filed exclusively in inbox or the dump for
notmuch.

Additionally changed the exception for inbox display from list to dump
tags in aerc, so that -- should there be a legitimate mailing list mail,
such as gitlab's pipeline reports -- they are still visible in inbox.
2020-09-25 11:25:18 +02:00
Marty Oehme 85c68fc676
mail: Add local folder and tag alignment
afew will locally add notmuch tags to mails, as well as move them to
specific folders according to the notmuch tags they already contain.

This sets mails residing in the `Dump` folder to be tagged
correspondingly with `dump`.
(imapfilter automatically puts all filtered
adverts and mailing lists into the dump folder beforehand.)

On the other hand, it makes sure that email tagged with `dump` also
resides in the `Dump` folder (if tagged manually with notmuch), and same
thing for `Inbox`.
2020-09-23 17:55:07 +02:00
Marty Oehme 0d00953f30
mail: Add afew automatic tagging
Added hook for afew tagging for local mail.

Mail will now arrive tagged only as 'new' by notmuch.
afew will then tag the mail accordingly as inbox unread when it is
personal mail.

It will additionally filter out anything marked as spam, or e-mail
containing a List-Id header, which will be tagged as 'list' and not
arrive in the inbox. This filters out anything arriving from a mailing
list from the inbox.

Removed the archive tag -- anything not in the inbox, and not marked as
list is instead used as an automatic archive.

Mail sent by myself will be automatically tagged as 'sent' and also not
show up in the mailbox.
2020-09-23 17:55:06 +02:00