[Dovecot] dovecot + sieve
Hi,
In ower mail system we use postfix and dovecot v1.2.10 with sieve plugin and i think is work fine but.....
i need to have access to variables values like in these test script
require ["enotify", "variables", "envelope"];
keep;
notify :importance "1" :message "TEST SIEVE ${from}: ${subject}"
"mailto:i_not_exist@hotmail.com";
but when i receive message, the values for "${from}" and "${subject}" are empty.
i don't know the reasons about these (i'm some lost with these issue)..
if help ... i put in master.cf (postfix) these value for dovecot delivery:
dovecot unix - n n - - pipe flags=DRhu user=mail:mail argv=/etc/dovecot/libexec/deliver -f ${sender} -d ${recipient}
¿is here the problem or what could be?
thanks in advance!
*Salu2 ;)*
Op 8-11-2010 13:27, maximatt wrote:
In ower mail system we use postfix and dovecot v1.2.10 with sieve plugin and i think is work fine but.....
i need to have access to variables values like in these test script
require ["enotify", "variables", "envelope"]; keep; notify :importance "1" :message "TEST SIEVE ${from}: ${subject}"
"mailto:i_not_exist@hotmail.com";
but when i receive message, the values for "${from}" and "${subject}" are empty.
i don't know the reasons about these (i'm some lost with these issue)..
Where did you get this example? Sieve does not predefine such variables. You'll need additional steps to achieve that. For example:
if header :matches "subject" "*" { set "subject" "${1}" } if envelope :matches "from" "*" { set "from" "${1}" }
You can also choose to use the From header instead of the envelope.
Regards,
Stephan
participants (2)
-
maximatt
-
Stephan Bosch