Frerich Raabe
2013-Jun-14 16:40 UTC
[Dovecot] Allowing clients to test their Sieve scripts
Hi, One thing which came up repeatedly is that clients using the IMAP server I run (using Dovecot 2.1) wonder whether they broke their Sieve scripts, i.e. it often goes like "I don't know whether I just didn't receive any mail, or whether my filters broke. Can you check the logs?". I then usually just run the sieve-test binary (part of the Pigeonhole distribution) and send them the output. However, I was wondering - is there maybe a way for them to try it themselves? Like, maybe a tiny web server which just prints a form asking for a mail file and a sieve script, and then it runs sieve-script and prints the output of that? I wonder how other people do that. -- Frerich Raabe - raabe at froglogic.com www.froglogic.com - Multi-Platform GUI Testing
On Fri, Jun 14, 2013 at 09:40:52AM -0700, Frerich Raabe wrote:> Hi, > > One thing which came up repeatedly is that clients using the IMAP server I run (using Dovecot 2.1) wonder whether they broke their Sieve scripts, i.e. it often goes like "I don't know whether I just didn't receive any mail, or whether my filters broke. Can you check the logs?". > > I then usually just run the sieve-test binary (part of the Pigeonhole distribution) and send them the output. However, I was wondering - is there maybe a way for them to try it themselves? Like, maybe a tiny web server which just prints a form asking for a mail file and a sieve script, and then it runs sieve-script and prints the output of that? I wonder how other people do that. > > -- > Frerich Raabe - raabe at froglogic.com > www.froglogic.com - Multi-Platform GUI Testing > > > > > >The ManageSieve plugin in Thunderbird does basic syntax checks, to check if your Sieve script does what it is supposed to to do, there is something like this - https://www.fastmail.fm/docs/sieve/sievetest.php -- staticsafe O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please don't top post. Please don't CC! I'm subscribed to whatever list I just posted on.
Thomas Harold
2013-Jun-14 16:50 UTC
[Dovecot] Allowing clients to test their Sieve scripts
On 6/14/2013 12:40 PM, Frerich Raabe wrote:> Hi, > > One thing which came up repeatedly is that clients using the IMAP server I run (using Dovecot 2.1) wonder whether they broke their Sieve scripts, i.e. it often goes like "I don't know whether I just didn't receive any mail, or whether my filters broke. Can you check the logs?". > > I then usually just run the sieve-test binary (part of the Pigeonhole distribution) and send them the output. However, I was wondering - is there maybe a way for them to try it themselves? Like, maybe a tiny web server which just prints a form asking for a mail file and a sieve script, and then it runs sieve-script and prints the output of that? I wonder how other people do that. >If you have Thunderbird, you may want to have them try out the Sieve plug-in available at http://sieve.mozdev.org/ It auto-compiles and displays errors in the edit window. The other thing we do is use RoundCube webmail (which has a sieve plugin) and have our users edit their sieve scripts through that instead. It's a form-based rules editor, so a bit harder for them to goof it up.
At 9AM -0700 on 14/06/13 you (Frerich Raabe) wrote:> > One thing which came up repeatedly is that clients using the IMAP > server I run (using Dovecot 2.1) wonder whether they broke their Sieve > scripts, i.e. it often goes like "I don't know whether I just didn't > receive any mail, or whether my filters broke. Can you check the > logs?". > > I then usually just run the sieve-test binary (part of the Pigeonhole > distribution) and send them the output. However, I was wondering - is > there maybe a way for them to try it themselves? Like, maybe a tiny > web server which just prints a form asking for a mail file and a sieve > script, and then it runs sieve-script and prints the output of that? I > wonder how other people do that.Simply providing some way for them to read the .dovecot.sieve.log file created in their home directory would be a good start. If there are any problems with delivery they will be logged there. You could set up some sort of web access, or even have a daily cronjob to mail the file to the user if it isn't empty. Ben
Benny Pedersen
2013-Jun-15 06:38 UTC
[Dovecot] Allowing clients to test their Sieve scripts
Frerich Raabe skrev den 2013-06-14 18:40:> One thing which came up repeatedly is that clients using the IMAP > server I run (using Dovecot 2.1) wonder whether they broke their > Sieve > scripts, i.e. it often goes like "I don't know whether I just didn't > receive any mail, or whether my filters broke. Can you check the > logs?".+1> I then usually just run the sieve-test binary (part of the Pigeonhole > distribution) and send them the output. However, I was wondering - is > there maybe a way for them to try it themselves? Like, maybe a tiny > web server which just prints a form asking for a mail file and a > sieve > script, and then it runs sieve-script and prints the output of that? > I > wonder how other people do that.is dovecot not just ignore sieve scripts that is invalid ? if so why not let it until scripts writer have access to sieve-test in localhost, it could not being test on any orher webpage since sieve is basicly uniq pr host that support it and i think managesieve should test scripts before commit it to filesystem maybe it will change, but i dopt -- senders that put my email into body content will deliver it to my own trashcan, so if you like to get reply, dont do it
Steffen Kaiser
2013-Jun-19 08:00 UTC
[Dovecot] Allowing clients to test their Sieve scripts
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 14 Jun 2013, Frerich Raabe wrote:> One thing which came up repeatedly is that clients using the IMAP server > I run (using Dovecot 2.1) wonder whether they broke their Sieve scripts, > i.e. it often goes like "I don't know whether I just didn't receive any > mail, or whether my filters broke. Can you check the logs?". > > I then usually just run the sieve-test binary (part of the Pigeonhole > distribution) and send them the output. However, I was wondering - is > there maybe a way for them to try it themselves? Like, maybe a tiny web > server which just prints a form asking for a mail file and a sieve > script, and then it runs sieve-script and prints the output of that? I > wonder how other people do that.you are not referring to syntax errors, do you? Otherwise, this seems to be a nice idea to let users actually _test_ their scripts. However, I wonder how educated they are, in order to paste in a correct "mail file" incl. header and the like. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUcFlBF3r2wJMiz2NAQIWkQf5AS1g63bj00I8nTrt9adYSgkRCXmRVlNi M2TjBAGcRZJ5gpL08dyrGpymOydrkcJdsKjgythloGxzezfPStYCg71FLjfO3dLx 6Y1SDue+Dfn0AS49Zyh1zm6KXy56JFgQSopV4zUum1y9KH7ncskzBlBZobYeTXlN rQXQ1Bim/m1368sCzqFwfD2v0CrFnNDe4YGaydbNIBQrC0WDPGQBWEiIxv4Ovudg Zbsk9NSIWDr/nu2MfvE9m1dhXDX9YxeVZWlYoira//PgQkO81P9zFfJGCH8y1qtl c+Hr1165e8sXunSnfkWRiZP3igoefWTgILZnBVSM9VpL3F1NtKi2uQ==IhRa -----END PGP SIGNATURE-----