Hello,

You can try to add "stop;" after "discard;", so that rule processing stops after the discard and doesn't trickle down to the other rule.

On 9/2/2026 1:05 PM, 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]

--
Anto'nio Henrique A. Proenca de Oliveira
"Although we can never go back, like an old sweet
song with a strong refrain, memories remain" - (Someone)

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
$Id: .signature,v 1.5 2008/03/13 11:22:00 tat Exp tat $

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

Reply via email to