[horde] Ingo with sieve not working

Arjen de Korte arjen+horde at de-korte.org
Thu Nov 22 15:29:02 UTC 2012


Citeren Ole Wolf <ole at naturloven.dk>:

> Quoting OVi C <csoft2k5 at gmail.com>:
>
>> The .dovecot.sieve is just a symlink pointing to the ingo script in the
>> sieve folder. I've also tried your approach and still nothing happens.
>
> I vaguely recall attempting with a symlink to .dovecot.sieve myself. For
> some reason abandoned it, possibly because I couldn't get it to work. This
> is several years ago, however, so I don't quite remember.
>
> With my configuration, I've created a ~/sieve directory, and within this
> directory, "ingo.sieve" is symlinked to "ingo". I don't remember why.
>
> The current Ingo seems to filter the messages as desired (on my server,
> that is), but at one time I also had to apply the following patch  
> (with patch -p0):
>
> ----------------------------------------------
>
> *** ../horde/ingo/lib/Script/Sieve/Action/Flag.php        2012-11-21  
> 14:58:34.635437275 +0100
> --- ingo/lib/Script/Sieve/Action/Flag.php        2012-11-21  
> 17:48:32.929381201 +0100
> ***************
> *** 90,96 ****
>        */
>       public function requires()
>       {
> !         return array('imapflags');
>       }
>
>   }
> --- 90,96 ----
>        */
>       public function requires()
>       {
> !         return array('imap4flags');
>       }
>
>   }
> *** ../horde/ingo/lib/tests/SieveTest.php        2012-11-21  
> 14:58:34.643436331 +0100
> --- ingo/lib/tests/SieveTest.php        2012-11-21 17:52:47.203390856 +0100
> ***************
> *** 73,79 ****
>           $bl->setBlacklistFolder(Ingo::BLACKLIST_MARKER);
>
>           $this->store($bl);
> !         $this->assertScript('require "imapflags";
>   if address :all :comparator "i;ascii-casemap" :is ["From",  
> "Sender", "Resent-From"] "spammer at example.com"  {
>   addflag "\\\\Deleted";
>   keep;
> --- 73,79 ----
>           $bl->setBlacklistFolder(Ingo::BLACKLIST_MARKER);
>
>           $this->store($bl);
> !         $this->assertScript('require "imap4flags";
>   if address :all :comparator "i;ascii-casemap" :is ["From",  
> "Sender", "Resent-From"] "spammer at example.com"  {
>   addflag "\\\\Deleted";
>   keep;
>
> ----------------------------------------------

Or enable 'imapflags' in your Dovecot configuration:

     sieve_extensions = +imapflags

The 'imapflags' extension is deprecated and by default disabled, but  
it is still supported if you explicitly enable it.

Best regards, Arjen



More information about the horde mailing list