Hi Reindl,

On 4/21/2013 3:21 PM, Reindl Harald wrote:
Am 21.04.2013 15:10, schrieb iliusha:
but, do you now what is strange - ok i don't have the BCC point in message
header, but i have Envelope-to: header, why the sieve won't process it?
(envelope :contains "to" "[email protected]" )
uhm the header is "Envelope-to" and you write "envelope :contains"

This is how i receive email headers:

/Return-path: <[email protected]>
*Envelope-to: [email protected]*
if header :matches ["Envelope-to"] ["[email protected]"] {}
would make more sense

Although the above will work, it does not mean that the approach Iliusha has chosen is wrong. Be sure you know the Sieve specification before you comment:

https://tools.ietf.org/html/rfc5228#section-5.4

In fact, that is normally the cleanest method to access the actual message envelope. Depending on the setup, those envelope headers may or may not represent the correct information. They usually do, if they exist, but still.

Also, why do you use ':matches' in your example? :)

Regards,

Stephan.

Reply via email to