Re: sieve filter rules *SOLVED*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Jun 2008 16:06:52 +0200 (CEST)
"Simon Matter" <simon.matter@xxxxxxxxx> 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 ++
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux