MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.61k stars 627 forks source link

Gmail labels formatting #203

Closed Romes-- closed 11 years ago

Romes-- commented 11 years ago

How should label names be formatted for

storeLabelsOperationWithFolder: uids: kind: labels:

to work reliably?

The gmailLabels property of MCOIMAPMessage contains strings that look like

\\Inbox \\Starred \\Important ...

and so on, but an MCOIMAPFetchFoldersOperation returns strings of the form

INBOX [Gmail]/Starred [Gmail]/Important ... etc.

How does one match up the two?

dinhvh commented 11 years ago

You might have a look at that: https://developers.google.com/gmail/imap_extensions I think "\Starred" is the preferred way to add labels. See "Special-Use Extension of the LIST command" for the keywords to use.

Romes-- commented 11 years ago

Thank you! Really loving mailcore2 by the way, it's amazing!

dinhvh commented 11 years ago

Thanks!