zimbra filter problem
I am facing a problem in zimbra filters. I have an account in zimbra that receives email for multiple email addresses. Now I need to create a filter to match an email address (say firstname.lastname@example.org) when it occurs in To/CC.
Normally one would create a filter like this:
The problem comes up when you have another recipient whose email address is some thing like: email@example.com. If you get an email from such address, it would be matched for the above filter. "matches exactly" cannot be used instead of "contains" in the filter because then the filter will not catch the case where the said email address is mentioned with other email addresses in the To or CC field.
# Test Filter
if anyof (
header :contains "to" "firstname.lastname@example.org",
header :contains "cc" "email@example.com"
some action here;
I've looked around the forum and didn't find any one else facing this/similar problem. Any help/hints would be highly appreciated.
What's wrong with using the "Matches exactly" option in the filter?
Thank you for responding. The problem with matches exactly is this:
Originally Posted by phoenix
Suppose the email is sent to two email addresses firstname.lastname@example.org and email@example.com, In this scenario the "matches exactly" condition will not be met. Or suppose if the header contains "XYZ <firstname.lastname@example.org>" instead of just the plain email address, again the "matches exactly" filter will fail.
"Matches Exactly" condition will only meet when there is only one email address in the To/CC header field, which might not always be the case.