A quick look at the code, but it looks like a nobrainer typo. You might want to test the attached patch. But please also file a bug report.
Aaron? Marc Dirix wrote: > Hi, > > I'm trying to create a vacation reply which sets the "from" > of the reply explicitly. According to the sieve vacation standard > this should be possible, however dbmail does not comply. > > I've setup a testuser, which gets email for > "[EMAIL PROTECTED]". The vacation reply always has the from > header set to "[EMAIL PROTECTED]" inspite of the explicit > setting inside the script. > > this is my script: > <script> > require "vacation"; > vacation > :days 1 > :subject "ahum" > :from "[EMAIL PROTECTED]" > "Blablabl"; > </script> > > > The sieve vacation standard says: > 4.3. Subject and From Parameters > > <snip /> > > A ":from" parameter may be used to specify an alternate address to > use in the From field of vacation messages. The string must specify > a valid [RFC2822] mailbox-list. Implementations SHOULD check the > syntax and generate an error when a syntactically invalid ":from" > parameter is specified. Implementations MAY also impose restrictions > on what addresses can specified in a ":from" parameter; it is > suggested that values which fail such a validity check simply be > ignored rather than causing the vacation action to fail. > 5.4. From > > Unless explicitly overridden with a :from parameter, the From field > SHOULD be set to the address of the owner of the Sieve script. > > > > -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
[1mdiff --git a/modules/sortsieve.c b/modules/sortsieve.c[m [1mindex 1d3173c..b2820f9 100644[m [1m--- a/modules/sortsieve.c[m [1m+++ b/modules/sortsieve.c[m [36m@@ -111,7 +111,7 @@ int sort_vacation(sieve2_context_t *s, void *my)[m mime = sieve2_getvalue_int(s, "mime"); // mime: 1 if message is mime coded. FIXME.[m message = sieve2_getvalue_string(s, "message");[m subject = sieve2_getvalue_string(s, "subject");[m [31m- fromaddr = sieve2_getvalue_string(s, "fromaddr"); // From: specified by the script.[m [32m+[m[32m fromaddr = sieve2_getvalue_string(s, "from"); // From: specified by the script.[m handle = sieve2_getvalue_string(s, "hash");[m [m /* Default to a week, upper limit of a month.[m
_______________________________________________ DBmail mailing list [email protected] https://mailman.fastxs.nl/mailman/listinfo/dbmail
