Marius, This looks like a bug to me. RFC5228 clearly states that double-quotes inside a quoted string should be escaped with a single backslash.
Dbmail needs to strip the backslashes involved. Please file a bugreport on the tracker. As a workaround: I always convert double-quotes to single-quotes when users upload a script. On 08/13/2010 12:00 PM, Marius Karthaus wrote: > Hi List, > > I'm having trouble using the " char in sieve vacation (and probably in > all sieve scripts) > I've tried several things but I either end up with a script with errors > or a reply that actually contains the escaped version \" of the " > character instead of the character " itself. > > Version: > > r...@mail3:~# dbmail-util -V |head -1 > This is DBMail version 2.2.15 > > My script: > > r...@mail3:~# cat test.script > require "vacation"; > vacation > :days 1 > :addresses ["[email protected]"] > :subject "Ik ben bezig met het \"testen\" van de autoreply" > "Ik ben bezig met het \"testen\" van de auto reply > Maar dat duurt hoop ik niet lang"; > > Insert using: > > r...@mail3:~# dbmail-sievecmd -u '[email protected]' -y -i vacation > test.script > Aug 13 11:50:25 mail3 dbmail-sievecmd[26187]: Error:[sort] > sortsieve.c,sort_startup(+663): Sieve notify is not supported in this > release. > Script [vacation] successfully updated and remains active! > > > Result: > I get an autoreply with the actual subject: > Ik ben bezig met het \"testen\" van de autoreply > > I've tried: > - not escaping-> :subject "Ik ben bezig met het "testen" van de > autoreply" -> (compile errors) > - using single chars -> :subject 'Ik ben bezig met het "testen" van de > autoreply' > (compile errors) > - double escaping (\\") -> :subject "Ik ben bezig met het \\"testen\\" > van de autoreply" > gives \\" in the resulting subject > > > Any ideas? > > Regards, > Marius Karthaus > > > > _______________________________________________ > DBmail mailing list > [email protected] > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail > -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
