Quote:
Originally Posted by BritTim
Usually, the best way of figuring out the sieve code for something that can be done using a Rule is to - Create the Rule
- Go to Edit custom sieve code (see bottom right of the page)
- Find the sieve code associated with the Rule you just created.
- Copy the code.
- Cancel to exit from Custom Sieve and delete the Rule you created temporarily.
Doing this for your problem, you get
Code:
if
allof(
address :is ["To","Cc","Resent-To","X-Delivered-To"] "MyAlias@MyDomain.com",
header :matches "X-Mailer" "MailChimp Mailer*"
)
{
discard;
stop;
}
|
Hi Tim
Really appreciate your knowledge here
Will the script I wrote fail, if so what about it have I messed up. Again forgetting aliases (so as to make it less complicated)?
PS I signed up for a free mailchimp account (giving the spammy gits no private info) I used an alias email & sent my self test emails while fiddling with sieve script. To test if my script was stopping them.
It only started stopping them when I set it like below
Quote:
if header :contains ["X-Mailer"] ["MailChimp"]
{discard; stop;}
|