On Wed, December 8, 2004 5:45 pm, Matt Keveney said:
> All,
>
>
> My email has installed spam filtering software that which discards
> high-scoring spam, but adds the following header to 'borderline' spam:
>
> X-Spam-Status: Yes
>
>
> Low scoring messages get a header like so:
>
>
> X-Spam-Status: No
>
>
> So I'm trying to install this filter:
>
>
> * Only unread messages
> * Match Header
> * Contains: X-Spam-Status: Yes
> * Move to: INBOX.spam
>
>
>
> ...but EVERYTHING gets moved into the spam folder.
>
>
> Note that there's a space in my 'contains' string... is this a problem?
> Should I be escaping that somehow?
>
>
> -Matt

Its very odd that this doesn't work, the spaces shouldn't matter as they are 
trimmed
out in the code like so...

    if ($where == 'Header') {
        $what  = explode(':', $what);
        $where = trim($where . ' ' . $what[0]);
        $what  = addslashes(trim($what[1]));
    }

If you think it is the space, have you tried filtering with it removed?  Have 
you
tried adding another before the : ?  I doubt either makes a difference.  I will 
look
through the code and see if I can come up with anything that may be causing.

The plugin needs a few updates as it is,  I need to add my code to CVS that 
allows
you to filter by text in the message body, or if found anywhere in the email.  
You
can also able to set it to "[Discard]" which will permanently delete the email.

Jimmy



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [EMAIL PROTECTED]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to