[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Filter question and praise
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2001-04-27 17:15:14
[Download RAW message or body]

John Aldrich wrote:
> 
<snip>
> What happens is if I have the "set identity"
> filter set to "any header" it just
> dumps all mail into the "inbox." I'd like
> to have it set the identity properly
> *and* sort the incoming mail...
<snip>

The reason for the behaviour you see is simple: Traversing the filter
list stops at the first pattern that matches, like in the following
pseudo-code:

filter = first filter;
while filter {
  if ( filter's pattern matches message ) {
    apply filter to message;
    return "filter foo matched";
  } else
    filter = next filter;   
}
return "no filter matched, so keep in Inbox";

The question is whether this is an intuitive behaviour or if all filters
that match the message should be applied to it. I think the current way
is the more intuitive. Else it would be very hard to constuct a filter
list that puts the two mails I get when someone replies to my posting to
a mailing list in two different folders. Impossible perhaps w/o a "stop
processing here" filter action.

Marc

-- 
Marc Mutz <Marc@Mutz.com>     http://EncryptionHOWTO.sourceforge.net/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)

_______________________________________________
Kmail Developers mailing list
Kmail@master.kde.org
http://master.kde.org/mailman/listinfo/kmail

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic