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

Handling multiple matches in HeaderMatchingFilter #311

Open
darrenkenny opened this issue Oct 1, 2021 · 3 comments
Open

Handling multiple matches in HeaderMatchingFilter #311

darrenkenny opened this issue Oct 1, 2021 · 3 comments

Comments

@darrenkenny
Copy link

I have a scenario where e-mails are being sent to multiple mailing lists (that are not handled by ListMailsFilter due to them basically being just distribution lists rather than what ListMailsFilter relies on.

Basically I may have multiple matches to the pattern for HaderMatchingFilter, and extract part of the name to be a tag, but only the first match is used.

Is there any way to have it handle this scenario? I can't see anything in the documentation.

@benmezger
Copy link

Do you think this could help? https://notmuchmail.org/faq/#index8h2

@GuillaumeSeren
Copy link
Collaborator

Hey,
sorry to be late.

So those mails, does not have list-id header ?

Does the thread works if you search / show them with notmuch ?

@darrenkenny
Copy link
Author

When it comes to ListMailsfilter, there is only one list-id entry, so it cannot handle thngs.

So when trying to work around this using HeaderMatchingfilters instead, it is only matching on the first entry in the To or Cc which means that it only will be tagged for that first match, and not all the lists that should match.

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

3 participants