Archived Forum Post

Index of archived forum posts

Question:

How to work with Spam box with IMAP?

Sep 27 '12 at 10:46

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?


Answer

Write code such as this:

http://www.example-code.com/foxpro/imap_listMailboxes.asp

to list the mailboxes you have available. Then you'll know what string should be passed to SelectMailbox for the SPAM mailbox.


Answer

Thanks. It is "[Gmail]/Spam"