Your message dated Tue, 5 Jan 2010 13:30:47 +0100
with message-id <[email protected]>
and subject line Done
has caused the Debian Bug report #504798,
regarding Ingo: error in sieve 'equal' condition
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
504798: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504798
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ingo1
Severity: important

I have found a bug in the translation of an "equal to" clause by the sieve backend: the clause is correctly stored in the database, but the Sieve script generated is always:

if true {

The cause is an incorrect string match for the "equal" condition: the string stored in the preferences is "equal" (and is correctly reported in the $_tests array, but is matched against a "equal to" string in the switch ($condition['match']) .

I tested this patch and it worked for me:

--- ./lib/Script/sieve.php.ORI  2006-10-31 08:24:34.000000000 +0000
+++ ./lib/Script/sieve.php      2008-11-07 09:11:29.000000000 +0000
@@ -488,7 +488,7 @@
             foreach ($filter['conditions'] as $condition) {
                 $tmp = '';
                 switch ($condition['match']) {
-                case 'equal to':
+                case 'equal':
$tmp = &new Sieve_Test_Relational(array('comparison' => 'eq', 'headers' => $condition['field'], 'value' => $condition['value']));
                     $test->addTest($tmp);
                     break;

The bug is already present in the latest svn version of ingo.

Regards.

             Paolo Miotto


-------------------------------------------
Paolo Miotto
Centro Servizi Informatici e Telematici
Università di Udine
Via delle scienze, 208
33100 - UDINE

Tel.: +39-0432-558909
Fax.: +39-0432-558911

e-mail: [email protected]
-------------------------------------------





----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita' di Udine





--- End Message ---
--- Begin Message ---
Version: 1.2.2-1

Fixed in 1.2.2:
http://cvs.horde.org/diff.php/ingo/lib/Script/sieve.php?r1=1.63.10.36&r2=1.63.10.37

Mathieu Parent


--- End Message ---

Reply via email to