mail2most icon indicating copy to clipboard operation
mail2most copied to clipboard

"To" filter doesn't filter on incoming messages sent to an email alias

Open doncoffin opened this issue 4 years ago • 1 comments

Messages sent to an email alias are not parsed on the used alias but are instead parsed on the final destination address.

To reproduce

  1. Create IMAP folder [email protected]
  2. Create system email alias [email protected]
  3. Configure mail2most to filter on To = ["bar-user"] # could also be ["[email protected]"]
  4. Send message to [email protected], watch mail2most logs
  5. Message is skipped as it doesn't match the filters

Changing To=["[email protected]"] catches the email sent to "bar-user".

Expected behavior Expected mail2most to match the address used by the message sender (the alias).

Release version 1.11.4

Architecture I'm running mail2most in a docker container.

Additional context This may be a feature request?

doncoffin avatar Mar 28 '21 21:03 doncoffin

hi @doncoffin thank you for your issue. You are right for now m2m doesn't account for mail aliases. I'll see if i can add this feature.

c-seeger avatar Mar 29 '21 10:03 c-seeger