sieve discard option debug
Hi,
i have a question if someone can help me with this. My sieve file configuration is this:
cat enabled_script.sieve
require ["fileinto"]; if header :contains "subject" "@ggmaail.com" { fileinto "INBOX.Spam"; }
elsif header :contains "subject" "TW" { discard;
elsif header :contains :comparator "i;octet" "X-Spam-Status" "autolearn=spam" { discard; }
When the condition is true and a mail is discard i can not discriminate in the logs what was the reason.
- "subject" "@ggmail.com" or 2) "subject" "TW"
I can only see this message over the logs:
February 15th 2021, 17:39:33.000
lmtp(mail@mail.domain)<27188>
(Note: i changed the domain names)
My question is: Can i setup or add any option in my sieve filter for more info about the discard reason ??? Any rules together with the discard option ?
I am out of idea about it. Thanks in advanced!!!
Hey Jose,
Did you find a way to solve this?
I need be able to tell apart messages discarded by user custom rule from messages discarded by being duplicates.
But the logs are exactly the same, So I can´t really show the user discarded messages without flooding him with the duplicates.
participants (2)
-
Bruno Jornalo
-
Jose Manuel