Search code examples
imaplibcurl

How to fetch FLAGS of an email using IMAP libcurl?


I want to get FLAGS of an email that I fecthed with libcurl.

How can I design the url? I just can get header and mime body, not including FLAGS of individual mail with current code.

Even though I searched through RFC documents, I couldn't find any examples on url scheme which can also fetch FLAGS.

If you can provide me with some tips on the url, I would appreciate it.


Solution

  • FLAGS can't be fetched via libcurl, in part because they can't be addressed using a URL. The RFC says what can be addressed:

    The IMAP URL scheme is used to designate IMAP servers, mailboxes, messages, MIME bodies, and search programs