With the property "loImap.SelectMailbox(Labelx)" I can work with Labelx="Inbox", but I can not work with Labelx="Spam" How to work with Spam box with IMAP?
Write code such as this:
to list the mailboxes you have available. Then you'll know what string should be passed to SelectMailbox for the SPAM mailbox.
Thanks. It is "[Gmail]/Spam"