[Dovecot] Bug in Dovecot Managesieve or Horde ?

Christian Felsing hostmaster at taunusstein.net
Mon Jul 20 11:17:47 EEST 2009


Hello,

there is a problem between Dovevot 1.2 Managesieve 0.11.7 and Horde
webmail 1.2.2 (possibly also in 1.2.3) in imap4flags

$ telnet localhost 2000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress
comparator-i;ascii-numeric relational regex imap4flags copy include body
variables enotify environment"
"SASL" "PLAIN LOGIN"
"STARTTLS"
"NOTIFY" "mailto"
"VERSION" "1.0"
OK "taunusstein.net imap4/pop3 ready."

This shows imap4flags, Cyrus sieve shows imapflags instead that. Horde
Ingos does not like that and complains about missing "imapflags". Two
small patches in Horde code resolves that, but I do not know if that's
the right way.

cd webmail2/ingo/lib

vi ./Script/sieve.php:

    function requires()
    {
        //return array('imapflags');
        return array('imap4flags');
    }

vi ./tests/SieveTest.php:

    function testBlacklistMarker()
    {
        $bl = &new Ingo_Storage_blacklist(3);
        $bl->setBlacklist(array('spammer at example.com'));
        $bl->setBlacklistFolder(INGO_BLACKLIST_MARKER);

        $this->store($bl);
        //$this->assertScript('require "imapflags";
        $this->assertScript('require "imap4flags";
if address :all :comparator "i;ascii-casemap" :is ["From", "Sender",
"Resent-From"] "spammer at example.com"  {
addflag "\\\\Deleted";
keep;
removeflag "\\\\Deleted";
stop;
}');
    }


After that, Horde Ingo likes Dovecot mailsieve.

Is it a bug of mailsieve ?

Regards
Christian


More information about the dovecot mailing list