View Single Post
Old 7 Oct 2017, 03:53 AM   #7
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 2,583
Originally Posted by FromLine View Post
Here's the code I'm using:

if header :contains ["From", "X-Mail-from", "Return-Path"] [] {
  reject "Message rejected because Invalid Email Recipient";
  fileinto "INBOX.cdrom"; stop;
It's not working at all.

* Emails are going into the Inbox, not the "cdrom" folder

* Sender at the email address is receiving nothing
Is the "" in quotes in the actual sieve code. If not, it needs to be. I would expect a syntax error if the quotes are missing, but perhaps not.
BritTim is offline   Reply With Quote