Roundcube Community Forum

 

Create a sieve filter for any of To/From/CC

Started by finbarr69, September 26, 2014, 07:16:20 PM

Previous topic - Next topic

finbarr69

Hello.  Sorry if this is the wrong place to ask this.

I'm using Roundcube  Webmail 1.0.0 on Plesk 12.0.18 and am trying to get a sieve filter in place that allows me to file emails from several people into a folder.  I want emails to be moved to the folder if any of From/To/CC headers match any of several email addresses.  But I don't want to have to repeat myself 3 times per email address.

It seems I can set the rule as "Other Header" and the next box as "from, to, cc" and then "contains" and then the first email address. And then I can repeat that for each remaining email address.  I just wondered if that was the correct way to do it?

It generates a sieve rule like this:

# rule:[myRule]
if anyof (header :contains ["from", "to", "cc"] "[email protected]")
{
   fileinto "INBOX.somewhere";
}

I just wanted to check that this rule will work ok.

Thanks

Brian