[Tickets #7117] Re: Compound filters with procmail

bugs at horde.org bugs at horde.org
Wed Nov 11 09:47:18 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7117
------------------------------------------------------------------------------
  Ticket             | 7117
  Updated By         | rene.plattner at uibk.ac.at
  Summary            | Compound filters with procmail
  Queue              | Ingo
  Version            | 1.2
  Type               | Bug
  State              | Resolved
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Chuck Hagenbuch
------------------------------------------------------------------------------


rene.plattner at uibk.ac.at (2009-11-11 04:47) wrote:

Dear Horde Team!

I noticed a problem at procmail script generation.

'To,Cc,Bcc,Resent-to'

is translated to

* \^To,Cc,Bcc,Resent-to: ...

should be

* ^To,Cc,Bcc,Resent-to: ...

I solved this as follows:

--- ingo/lib/Script/procmail.php_orig   2009-11-11 08:55:31.000000000 +0100
+++ ingo/lib/Script/procmail.php        2009-11-11 08:59:06.000000000 +0100
@@ -640,7 +640,7 @@
              if (strpos($condition['field'], ',') == false) {
                  $string = '^' . $condition['field'] . ':';
              } else {
-                $string .= '/^(' . str_replace(',', '|',  
$condition['field']) . '):';
+                $string .= '^(' . str_replace(',', '|',  
$condition['field']) . '):';
              }
              $prefix = ' ';
          }







More information about the bugs mailing list