

No, I don't actually think that’s the issue in this case. So why not add a sieve rule after it hits the spam folder to delete or only keep X days worth? It sounds like you're trying to catch spam before it's marked as spam, then when it is, it gets put into the spam folder correctly, but you don't process it further. In my cases, they still arrive in the Spam folder which seems to be incorrect said in Can't discard spam messages on arrival using Sieve filters:

See if the message is really discarded per the sieve filter or if it's still arriving in the Spam folder. Send a message to the email account using the GTUBE string which SpamAssassin automatically marks with 1000 points, it's basically a test for spam filters: XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X Basically I can't get any filters to work when it's been identified as spam, only filters when it's NOT spam. no filter) after the redirect rule is applied, but still no-dice. I've tried variations of it too such as apply to all messages (i.e. will still see the email saved in the Spam folder. If allof (header :contains "x-spam-status" "Yes,") It seems maybe there's a priority filter going on elsewhere in Cloudron that's overriding my sieve filter? In my case, I want the spam messages to be discarded/deleted automatically as there's no sense in them remaining in the "forwarding only" mailbox. However, all messages marked as spam still save in the mailbox regardless of any filters I set to discard them. If allof (not header :contains "x-spam-status" "Yes,") I was able to setup redirects in the mailbox and they are working where they only forward non-spam messages by using the following filter: # rule: Use case: Discard spam messages on arrival using Sieve filters via Roundcube. I am writing a dedicated bug report based on a post I made in another thread.
