On Thu, Jul 5, 2007, Michael Monnerie <[EMAIL PROTECTED]>
said:

> Hi, we're generating vacation Scripts via a web interface, and currently=20
> use dbmail-sievecmd. We'd like to replace it by directly INSERTing to=20
> SQL, could somebody describe what we have to take care of?
> 
> =2D check if script for user exists
> =2D insert script
> =2D activate script, deactivate all others (or is it possible to let 2=20
> scripts active?)

Nope, just the first script that the database handed back would be
executed, possibly non-deterministically.

> dbmail-sievecmd checks uploaded scripts, could we do this easily=20
> ourself? Otherwise we'll skip this, as the vacation script is fairly=20
> easy, doesn't need checking I guess.

You could use http://libsieve-php.sourceforge.net/ to validate the script.
Any scripts that get through one parser but fail the other are bugs. We
are robust to script parse errors, though we do still through a bunch of
ugly and not very helpful messages that I will be removing in 2.2.6.

I don't encourage you to do this directly. dbmail-sievecmd and
dbmail-timsieved are intended to be a consistent interface. That said, it
should work fine for now.

Aaron
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to