sieve filter rules *SOLVED*
dick hoogendijk
dick at nagual.nl
Mon Jun 30 12:04:46 EDT 2008
On Mon, 30 Jun 2008 16:06:52 +0200 (CEST)
"Simon Matter" <simon.matter at invoca.ch> wrote:
> > dick hoogendijk wrote:
> > And I'm sure it's the latter rule: "STARTTLS" that's causing the
> > failure. Older versions of cyrus imap did not send this and then
> > avelsieve + squirrelmail worked fine. What can I do except retun to
> > the older stable release?
>
> I also have "STARTTLS" and it works for me, so I don't think that's
> the problem.
I found the problem!
It's in plugins/avelsieve/include/managesieve.lib.php
The default file contains this piece of code:
elseif(strcmp($this->item[0], "STARTTLS") == 0) {
$this->capabilities['starttls'] = true;
}
This worked OK because the -OLDER- timsieved did NOT respond with
"STARTTLS" and so the capabilities starttls was true.
The -NEW- timsieved simply needs ONE change: 0 -> 1
The new code then becomes:
elseif(strcmp($this->item[0], "STARTTLS") == 0) {
$this->capabilities['starttls'] = true;
}
After this very simple change, avelsieve starts working again with
Squirrelmail and timsieved v2.3.11 and up.
--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ + SunOS sxce snv91 ++
More information about the Info-cyrus
mailing list