This project is read-only.

Idle Support and some basic operation.

Topics: Issues
Apr 15, 2015 at 6:29 AM
Edited Apr 15, 2015 at 7:01 AM
I have some basic questions to use this library.
  1. What are query string we can provide to search the mailbox
  2. Getting only x number of email or using { var messages1 = folder21.Search("NEW");} or
    { var messages1 = folder21.Search("RECENT") } to fetch recent mail its not working.
  3. from gmail inbox i am not getting the user defined folder ,although when i try to download the mail like { var f6 = client.Folders["Placement Cell"]; } its working ..but why not getting all folder list
  4. Idle support is now fully functional ?
  5. Does this library support functionality for access all IMAP server or somethings are specific for Gmail only.
May 10, 2015 at 10:57 AM
Edited May 10, 2015 at 10:57 AM
Hi csc2sks,

okay, step by step:
  1. The search queries are described in the IMAP Spec:, for GMail you additionally have the extended syntax:
  2. For limiting the number of messages to be downloaded, refer to the documentation, there is a parameter for this. E.g Folder.Search("RECENT", MessageFetchMode.ClientDefault, 10)
  3. ImapClient.Folders is a collection, simply iterate through it to get all folders (Doc: Browsing common folders)
  4. Idle is now fully functional. For best results, use the latest code from the repository.
  5. The library supports all IMAP servers.