Can't find mails in 'Spam' folder in Get IMAP mail message

Hi all, I am facing one issue with reading mails in ‘Spam’ folder. I am using Get IMAP mail message. There are 21 mails in the spam folder but the bot is showing no email in that folder. Any idea how to solve it?

Output logs:

hey, just try read another folder from the same email account / server to start tracking the issue.

Hi Sabreen I am facing this issue do you know how I can fix it

thanks