Try "imapsieve_expunge_discarded = yes" in your config. It was necessary in my case.
BR: Dw.
--
dr Tóth Attila, Radiológus, 06-20-825-8057
Attila Toth MD, Radiologist, +36-20-825-8057

On 2026.09.02 14:05, Jorge Bastos via dovecot wrote:
Hi guys,

Small help with a sieve script, I have the script below in a useraccount, in this exact order.
The redirect works, but the discard doesn't.
A message that comes from the domain "clubefashing.com" or "nutribody.pt", is always redirected.

Any idea what is wrong here?

# rule:[blocks]
if anyof (header :contains "from" "clubefashion.com", header :contains "from" "nutribody.pt")
{
discard;
}
# rule:[redir]
if true
{
redirect "[email protected]";
}
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to