Maybe you know, maybe not, but pre-build Debian Lenny packages of dovecot from backports has been built with sieve plugin.
Sieve plugin provides mail filtering facilities at time of final message delivery using the Sieve language. This filters can be set by mail users from their webmail – squirrelmail with avelsieve plugin.
My setup was with avelsieve from sid – icons looks much nicer than from lenny, also my squirrelmail is from backports.
Install plugin:
wget http://ftp.cz.debian.org/debian/pool/main/s/scriptaculous/libjs-scriptaculous_1.8.3-1_all.deb
dpkg -i libjs-scriptaculous_1.8.3-1_all.deb
wget http://ftp.cz.debian.org/debian/pool/main/a/avelsieve/avelsieve_1.9.9-2_all.deb
dpkg -i avelsieve_1.9.9-2_all.deb
Enable managesieve
/etc/dovecot/dovecot.conf
protocols = imap imaps pop3 pop3s managesieve
Change port in
/etc/squirrelmail/avelsieve-config.php
$sieveport = 2000;
Change line 204 of /usr/share/squirrelmail/plugins/avelsieve/include/support.inc.php to
for ($i = 0; $i <= $maSize; $i++) {
which fixes missing last imap folder in ‘Move to Folder’ rule.