[imp] filter is not functioning in CVS :)
Andreas Dahlén
andreas@dahlen.ws
Thu, 1 Aug 2002 19:59:24 +0200
This message is in MIME format.
---------------------- multipart/alternative attachment
Citerar Michael M Slusarz <slusarz@bigworm.colorado.edu>:
> 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.
>
My filters all look like this;
Move messages to folder Lists/Openna where the To or Cc or From contains : header contains openna-users@smtp.openna.com
and thay doesn't work.
/Andreas
---------------------- multipart/alternative attachment
<html><head><title></title><meta content="MSHTML 6.00.2716.2200"
name="GENERATOR" /></head><body>Citerar Michael M Slusarz
<slusarz@bigworm.colorado.edu>: <br /><br />> Quoting Michael Cochrane
<mike@graftonhall.co.nz>: <br />> <br />> | This fixes everything
for me: <br />> | <br />> | - $query = 'UNDELETED OR'; <br />> | +
$query = 'UNDELETED'; <br />> | foreach ($fields as $field) { <br />> |
$query .= ' ' . strtoupper($field) . ' "' . <br />> $text . '"'; <br />>
| } <br />> <br />> That is definitely _not_ the correct solution. This
change results <br />> in all <br />> the fields being matched in an
"AND" manner. RFC 2060: <br />> <br />> When multiple keys are specified,
the result is the <br />> intersection <br />> (AND function) of all the
messages that match those keys. <br />> <br />> However, the current IMP
filters only support "OR" filters - I am <br />> currently <br />> hard
at work implementing "AND" filters. <br />> <br />> If someone could give
me an example of a filter that doesn't work, <br />> that <br />> would
be great. My filters all look like this: <br />> <br />> Move messages to
the Spam folder where the X-Spam-Flag: header <br />> contains YES <br
/>> <br />> and they all work fine. <br />> <br /><br />My filters all
look like this;<br /><br />Move messages to folder Lists/Openna where the To or
Cc or From contains : header contains <a
href="mailto:openna-users@smtp.openna.com">openna-users@smtp.openna.com</a><br
/><br />and thay doesn't work.<br /><br />/Andreas</body></html>
---------------------- multipart/alternative attachment--