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 email@example.com) 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: firstname.lastname@example.org. 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" "email@example.com",
header :contains "cc" "firstname.lastname@example.org"
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 email@example.com and firstname.lastname@example.org, In this scenario the "matches exactly" condition will not be met. Or suppose if the header contains "XYZ <email@example.com>" 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.