[Dovecot] dovecot-lda, sieve, maildir

Timothy White weirdit at gmail.com
Mon Jul 3 08:36:46 EEST 2006


On 7/3/06, Peter Fern <dovecot at obfusc8.org> wrote:
> Maildirs work fine, example:
>
> require "fileinto";
>
> # SPAM
> if header :comparator "i;ascii-casemap" :is "X-DSPAM-Result" "Spam"  {
>     fileinto "SPAM";
>     stop;
> }

Not sure if your doing more work than needed here...

if header :contains ["X-DSPAM-Result"] "Spam" {
   fileinto "Spam";
   stop;
}

This does exactly the same as what yours does, and I'm not sure how it
would compare in resources or not, but it's certainly easier to write!
;-)

Tim
-- 
Linux Counter user #273956


More information about the dovecot mailing list