[Dovecot] sieve rule help

Bradley Giesbrecht bradley.giesbrecht at gmail.com
Sat Aug 21 20:20:05 EEST 2010


On Aug 21, 2010, at 10:01 AM, Piyush Joshi wrote:

> Dear All,
>               I am using dovecot-2.0.0 version and all my sieve
> filters are working perfectly except the following one.
>
> I am trying to flag message coming from jagdish at example.net mail id.
>
> require  
> ["fileinto 
> ","envelope 
> ","reject","vacation","imap4flags","relational","comparator-i;ascii- 
> numeric","regex","body","date"];
>
> if address :contains "From" "jagdish at example.net"
> {
> keep :flags ["Flagged"]  ;
> }
>
> Is it possible to make it work without using addflag to add a flag ?

 From a recent thread (pigeonhole sieve imapflags bug):
> if allof (header :contains "Subject" "Account Past Due Notice")
> {
>        fileinto "Billing";
>        setflag "\\Seen";
>        stop;
> }


Reading http://www.faqs.org/rfcs/rfc5232.html maybe:

if address :contains "From" "jagdish at example.net"
{
	keep :flags "\\Flagged"  ;
}

// Brad


More information about the dovecot mailing list