[imp] filter is not functioning in CVS :)

Michael M Slusarz slusarz@bigworm.colorado.edu
Thu, 1 Aug 2002 10:17:44 -0600


Quoting Michael Cochrane <mike@graftonhall.co.nz>:

| This fixes everything for me:
|
| -            $query = 'UNDELETED OR';
| +            $query = 'UNDELETED';
|              foreach ($fields as $field) {
|                  $query .= ' ' . strtoupper($field) . ' "' . $text . '"';
|              }

That is definitely _not_ the correct solution.  This change results in all 
the fields being matched in an "AND" manner.  RFC 2060:

      When multiple keys are specified, the result is the intersection
      (AND function) of all the messages that match those keys. 

However, the current IMP filters only support "OR" filters - I am currently 
hard at work implementing "AND" filters.

If someone could give me an example of a filter that doesn't work, that 
would be great.  My filters all look like this:

Move messages to the Spam folder where the X-Spam-Flag: header contains YES 

and they all work fine.

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder