Hi,

"header :is From" compares against the whole From: header. You only want to test the containing email address. See

address
This lets you match on only an address field's email address, not its associated name. For example, I could send an email as "John Smith" <[email protected] >. The test header "From" :is "[email protected]" would be false because that is not the entire header. But address "From" :is "[email protected] " would be true because that is the entire address.

Check the RFC and search for "address", there you will find explanations and examples
http://www.faqs.org/rfcs/rfc3028.html

Michael


On Nov 11, 2010, at 11:13 AM, Simone Caruso wrote:

On 10/11/2010 21:14, A.L.E.C wrote:
On Wed, 10 Nov 2010 19:01:02 +0100, Simone Caruso wrote:
I have a problem with a sieve script..
my config is dovecot 1.2.15 with managesieve, and roundcube.
if anyof (header :contains "From" "[email protected]")
if anyof (header :is "From" "[email protected]")

":is" is an absolute match, ":contains" is a substring match.

http://tools.ietf.org/html/rfc5228#section-2.7.1

Of course, but with the SAME header "From:" ( From: "AA" <[email protected] > for example) :contains match but :is
_don't_ match... i don't understand the reason :/

For my logic "if anyof (header :is "From" "[email protected]")" should match "From: "AA" <[email protected]>", but in practice that script don't.

--
Simone Caruso
IT Consultant
p.iva: 03045250838

Reply via email to