Hey, Back a while ago, I suggested using CMU's Sieve as a sorting language for DBMail. So I started working on splitting Sieve out of Cyrus, and making it into a standalone library that could be easily integrated into other projects. I haven't had as much time to work on this as I'd like, but it's been moving along nicely :-)
I've got a website up on sourceforge, and some example code with annotations is posted to the site, so you can get a feel for how the API currently works. I hope that a few people might take a look at this, and perhaps even lend a hand getting this new 'libSieve' into a good position to be complemented to DBMail! http://libsieve.sf.net/ Aaron