[Dovecot] dovecot 1.2.1 and sieve-0.9.1

Tim Traver tt-list at simplenet.com
Wed Jul 29 04:25:26 EEST 2009


> Your script checks for:
> - a header called "Sender" literally (which isn't in  the posted header)
> - expects it to contain a valid e-mail address that contains the string
> "Dude" (which is not true, when you actually meant to use "From": Dude
> is not part of the mail address)
>
>   
>
> The correct version of the script would check the "From" header:
>
> if header :contains "From" "Dude" {
> 	fileinto "foobar";
> }
>
>   
Thank you for eveyone for the answers. It shed better light on how the
rules work. I guess the best way to get the name portion of the sender
is indeed to use the "header" modifier and pick the correct header field.

Thanks,

Tim.



More information about the dovecot mailing list