View Single Post
Old 7 May 2019, 05:52 AM   #11
xyzzy
Senior Member
 
Join Date: May 2018
Posts: 182
Quote:
Originally Posted by blurk View Post
Anyway, I have a further update. I removed all the addheader commands from my live FastMail copy of the Sieve script, and it's still not setting any flags. Copy the same script into the Sieve tester and it claims it will add the flag.
Strange. After I posted my "what effect does \Flagged have?" I added the following into my sieve code at the very end where anything that gets that far would be destined for the inbox.

Code:
if allof(true, header :contains "Subject" "test") {
  addflag "\\Flagged";
  addheader "X-Sieve" "x";
  fileinto "INBOX.test";
}
And the test email was pinned and had the X-Sieve line in it.

Oddly though when I tested just this with sieve tester I got no results at all! I think that's a sieve tester bug. The addheader confuses it.
xyzzy is offline   Reply With Quote