[Tickets #12049] Re: Filter-Rules-Enhancements
noreply at bugs.horde.org
noreply at bugs.horde.org
Thu Feb 21 13:55:22 UTC 2013
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: http://bugs.horde.org/ticket/12049
------------------------------------------------------------------------------
Ticket | 12049
Aktualisiert Von | martin.tessun at die-tessuns.de
Zusammenfassung | Filter-Rules-Enhancements
Warteschlange | Ingo
Version | Git master
Typ | Enhancement
Status | Accepted
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
martin.tessun at die-tessuns.de (2013-02-21 13:55) hat geschrieben:
>> 1. Add some more flags, mainly the widely used "Junk"-flag is missing
>
> Makes sense.
>
>> 2. Do a "group-hierarchy". This is meant (example for a Mailing-List)
>> |-> Recipient mailinglist at example.com
>> |---> fileinto "My Mailinglist"
>> |---> Sender "Me"
>> |------> flag \\Seen
>
> Not sure what you mean. Are you talking about sub-rules, i.e. rules
> that only apply if an earlier rule applied too? This is pretty
> complex to implement, code-wise and ui-wise. Since you can already
> do this by creating duplicate criteria for different rules, and
> since this is a really advanced and properly rarely used feature,
> I'd rather not spent so much time on this.
I think you mainly got it. Within sieve this could look like this (e.g.):
# First do the Spam-stuff
if not header :contains "X-Spam-score" "-" {
if header :value "ge" :comparator "i;ascii-numeric"
["X-Spam-score"] ["5"] {
setflag "Junk";
if header :value "ge" :comparator "i;ascii-numeric"
["X-Spam-score"] ["20"] {
# Do not keep
discard;
}
elsif header :value "ge" :comparator "i;ascii-numeric"
["X-Spam-score"] ["10"] {
fileinto "Junk";
}
else {
fileinto "Junk.maybeJunk";
}
stop;
}
}
More information about the bugs
mailing list