EmailDiscussions.com  

Go Back   EmailDiscussions.com > Email Service Provider-specific Forums > FastMail Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Stay in touch wirelessly

FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc.

Reply
 
Thread Tools
Old 29 Sep 2018, 11:36 AM   #1
anotherJeremy
Essential Contributor
 
Join Date: Aug 2004
Location: Japan
Posts: 226
Please help with forwarding rule

I want to forward all mail from a certain domain to another address EXCEPT mail from a specific address in that domain. I am confused about "does not match glob pattern" vs. "does not match regular expression."

I think the conditions for my rule should be:

If ALL of the following conditions apply:

The sender's email contains [domain]

The sender's email does not match glob pattern or regular expression [specific address]

Could anyone tell me which of these is correct? OF if both are incorrect, please point me in the right direction.

Thank you in advance.

Jeremy
anotherJeremy is offline   Reply With Quote

Old 29 Sep 2018, 03:49 PM   #2
n5bb
Intergalactic Postmaster
 
Join Date: May 2004
Location: Irving, Texas
Posts: 8,388
You can do this using:
  • If all of the following conditions apply:
  • The sender's email ends with (domain)
  • The sender's email does not match glob pattern (address)
  • Send a copy to (address)
This rule creates sieve code similar to:
Code:
if 
   allof(
   address :matches "From" "*example.org",
   not address :matches "From" "ignore@example.org"
   )
 {
   redirect :copy "jcitizen@fastmail.fm";
  }
Bill
n5bb is offline   Reply With Quote
Old 29 Sep 2018, 05:30 PM   #3
anotherJeremy
Essential Contributor
 
Join Date: Aug 2004
Location: Japan
Posts: 226
Thank you.

Thank you, Bill. This was just what I needed.

Jeremy

Quote:
Originally Posted by n5bb View Post
You can do this using:
  • If all of the following conditions apply:
  • The sender's email ends with (domain)
  • The sender's email does not match glob pattern (address)
  • Send a copy to (address)
This rule creates sieve code similar to:
Code:
if 
   allof(
   address :matches "From" "*example.org",
   not address :matches "From" "ignore@example.org"
   )
 {
   redirect :copy "jcitizen@fastmail.fm";
  }
Bill
anotherJeremy is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 05:01 AM.

 

Copyright EmailDiscussions.com 1998-2013. All Rights Reserved. Privacy Policy