GMail Labels are just IMAP Mailboxes

Question:
I’m going to be using them in VB.Net to process a GMail inbox. In GMail they use Labels instead of folders. Are the labels that belong to an email visible via your tool?

Ideally the VB application would process the inbox, and perform actions based on the label.

Answer:
I investigated and it refreshed my memory. GMail “labels” are just IMAP mailboxes. You can refer to the samples at http://www.example-code.com for VB.NET –> IMAP. You’ll find examples that list the mailboxes on the server. If you run it, you’ll see the labels listed. For example:

INBOX
Trash
[Gmail]
[Gmail]/All Mail
[Gmail]/Drafts
[Gmail]/Sent Mail
[Gmail]/Spam
[Gmail]/Starred
[Gmail]/Trash