avelsieve + squirrelmail wont work.

> > 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") == 1) {
$this->capabilities['starttls'] = true;
}

After this very simple change, avelsieve starts working again with
Squirrelmail and timsieved v2.3.11 and up.