Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter mails from addresses in a list contained in a file? #310

Open
vikasrawal opened this issue Sep 28, 2021 · 3 comments
Open

Filter mails from addresses in a list contained in a file? #310

vikasrawal opened this issue Sep 28, 2021 · 3 comments

Comments

@vikasrawal
Copy link

I am sorry if this is not the place to post queries. I could not figure out where else to ask it.

I would like to tag mails from a list of addresses as spam. The list is contained in a file, to which i would like to keep adding addresses that I want to block. How can I do this using afew?

@GuillaumeSeren
Copy link
Collaborator

Hey @vikasrawal
You could do that with just simple notmuch queries, maybe using a filter from afew to add the correct tag could also do it,
like this

[Filter.5]
message = Tag all messages from the notmuch mailing list
query = to:notmuch@notmuchmail.org
tags = +notmuch

@vikasrawal
Copy link
Author

I am sorry if my question was not clear. Can the filter read a list of addresses from a file?

@GuillaumeSeren
Copy link
Collaborator

Hey @vikasrawal
I don't think you can do that actually, but you could:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants