[dev] ingo: $use_address_test

Todd Merritt tmerritt at email.arizona.edu
Wed Jul 16 08:56:59 PDT 2003


Whoops, here's a fix.

Todd
On Wed, 2003-07-16 at 05:51, Marc Jauvin wrote:
> In version 1.41 of ingo/lib/Script/sieve.php, the "$use_address_test" variable
> is NEVER set to true... (this is part of the code submitted by Todd Merrit).
> 
> Thanks.
> 
> --
> Marc Jauvin
> http://register4less.com
> 450-441-5458
> 
> -- 
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org

-------------- next part --------------
--- sieve.php~	2003-07-15 00:15:22.000000000 -0700
+++ sieve.php	2003-07-16 08:55:12.000000000 -0700
@@ -496,6 +496,7 @@
                        have e-mail addresses. */
                     if (preg_match('/(From|To|Cc|Bcc)/', $condition['field'])) {
                         $vals['addresses'] = preg_replace('/(?<!\\\)\,/', '\n', $condition['value']);
+                        $use_address_test = true;
                     } else {
                         $vals['strings'] = $condition['value'];
                     }


More information about the dev mailing list