[Dovecot] dovecot sieve plugin
hi...
¿exist some way to extract message body contect to a variable with dovecot sieve plugin? ¿:(?
it's needed to do something like these:
if address :matches ["From"] ["*"] { set "sender" "${0}"; <extract body content> # i try using something like "if body :raw :contains ["*"]" and use ${1} but i cant make work. set :encodeurl "body" "something more <body content>"; notify :message "Test msg from ${sender}" "mailto:someone@domain.com ?body=${body}"; }
thanks in advance! ;)
PD: sorry if these message could be off toppic. :(
-- *Salu2 ;)*
changing the answer...
Why these stament:
if body :matches ["text/html"] ["these_is_a_test"] {
gives the followin error when i try to parse them:
line 4: error: the body test requires 1 positional argument(s), but 2
is/are specified. error: validation failed.
i found some examples that considered these a valid sieve stament. :(
thanks in advance!
¿exist some way to extract message body contect to a variable with dovecot
sieve plugin? ¿:(?
it's needed to do something like these:
if address :matches ["From"] ["*"] { set "sender" "${0}"; <extract body content> set :encodeurl "body" "something more <body content>"; notify :message "Test msg from ${sender}" "mailto: someone@domain.com?body=${body}"; }
-- *Salu2 ;)*
On 09.11.2010 14:07, maximatt wrote:
if body :matches ["text/html"] ["these_is_a_test"] {
gives the followin error when i try to parse them:
line 4: error: the body test requires 1 positional argument(s), but 2 is/are specified. error: validation failed.
This probably should be: if body :content ["text/html"] :matches ["these_is_a_test"] http://tools.ietf.org/html/rfc5173 -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
participants (2)
-
A.L.E.C
-
maximatt