View Single Post
Old 22 Jan 2021, 04:30 AM   #2
JeremyNicoll
Essential Contributor
 
Join Date: Dec 2017
Location: Scotland
Posts: 490
Maybe you have a higher-priority rule that accepts such mails?

If you have no other sieve rules, maybe you miscoded the one you did set up.

It's hard for anyone else to comment unless you show us - suitably censored if needed - what you've defined. And also, what the headers of a mail that you think should have been deleted but wasn't contain.

If you do have other sieve rules, it's sometimes useful to add to those an action that will alter incoming mails' headers so you can see which rule caused which action. For example (test code):

if header :contains "Subject" "this is just a sieve test" {
addflag "\\Flagged";
addheader "X-JN-Breadcrumb" "Inserted at start of headers by my sieve code";
addheader :last "X-JN-Breadcrumb" "Appended at end of headers by sieve test 23";
stop;
}

will turn on the red "flag" pin, and add two new headers, one at the top of the mail's existing headers and one at the bottom.
JeremyNicoll is offline   Reply With Quote