ImapGetExtensions Method |
Namespace: MailBee.ImapMail
Exception | Condition |
---|---|
MailBeeException | An error occurred and ThrowExceptions is true. |
You should already be connected to the IMAP4 server in order to use this method.
In the returned StringDictionary, each key is a capability name (always lowercase) and its value is an empty string (because IMAP4's capabilities have no parameters).
// To use the code below, import MailBee namespaces at the top of your code. using MailBee; using MailBee.ImapMail; // The actual code (put it into a method of your class). Imap imp = new Imap(); imp.Connect("mail.domain.com"); System.Collections.Specialized.StringDictionary caps = imp.GetExtensions(); if (caps == null) { Console.WriteLine("The given server does not support any IMAP4 extensions"); } else { foreach (string cap in caps.Keys) { Console.WriteLine(cap); } } imp.Disconnect(); // The output (the actual content will be different for a particular mail server). auth=plain multiappend imap4 auth=login literal+ auth=digest-md5 imap4rev1 auth=ntlm quota uidplus starttls auth=cram-md5