Mail trained as spam disappears from inbox but does not appear in junk

Macbook with Ventura. I have iCloud, Gmail and Imap accounts. When I train something in “all inboxes” as spam it disappears from inbox but does not appear in junk. Where has it gone?

Are you using Apple Mail? There’s a setting to control where messages move when you train them:

If you do select the Junk mailbox, please note that there may be more than one Junk mailbox in Mail. You want the one with the special icon, which will be inside your account (which you may need to expand in Mail’s sidebar) or in All Junk (if you’ve enabled that).

If you can’t find message in Mail, you can also select it in SpamSieve’s Log window and choose Open in External Viewer to open SpamSieve’s copy of the message.