afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 98 forks source link

Wishlist: make query-based tagging simpler #230

Open hydrargyrum opened 5 years ago

hydrargyrum commented 5 years ago

To use query-based tagging, one must convert notmuch-tag (optionally --batch)

+deleted -- tag:new and from:spam@spam.com

to (taken from the sample config)

[Filter.1]
message = Delete all messages from spammer
query = from:spam@spam.com
tags = +deleted;-new

but this is much more verbose. IMHO the most tedious part is the forced numbering in [Filter.1]. From what I understand, sections in afew's config are already ordered, so why forcing the numbers?

Also, deleting a filter in a shell script (or a notmuch-tag --batch file) is straightforward, it's only removing one line, while doing the same in afew's config is much more complicated, it involves re-numbering all sections to offset them by 1.