// // ImapCapabilities.cs // // Author: Jeffrey Stedfast // // Copyright (c) 2013-2020 .NET Foundation and Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; namespace MailKit.Net.Imap { /// /// Capabilities supported by an IMAP server. /// /// /// Capabilities are read as part of the response to the CAPABILITY command that /// is issued during the connection and authentication phases of the /// . /// /// /// /// [Flags] public enum ImapCapabilities : ulong { /// /// The server does not support any additional extensions. /// None = 0, /// /// The server implements the core IMAP4 commands. /// IMAP4 = 1L << 0, /// /// The server implements the core IMAP4rev1 commands. /// IMAP4rev1 = 1L << 1, /// /// The server implements the core IMAP4rev2 commands. /// IMAP4rev2 = 1L << 2, /// /// The server supports the STATUS command. /// Status = 1L << 3, /// /// The server supports the ACL extension defined in rfc2086 /// and rfc4314. /// Acl = 1L << 4, /// /// The server supports the QUOTA extension. /// Quota = 1L << 5, /// /// The server supports the LITERAL+ extension. /// LiteralPlus = 1L << 6, /// /// The server supports the IDLE extension. /// Idle = 1L << 7, /// /// The server supports the MAILBOX-REFERRALS extension. /// MailboxReferrals = 1L << 8, /// /// the server supports the LOGIN-REFERRALS extension. /// LoginReferrals = 1L << 9, /// /// The server supports the NAMESPACE extension. /// Namespace = 1L << 10, /// /// The server supports the ID extension. /// Id = 1L << 11, /// /// The server supports the CHILDREN extension. /// Children = 1L << 12, /// /// The server supports the LOGINDISABLED extension. /// LoginDisabled = 1L << 13, /// /// The server supports the STARTTLS extension. /// StartTLS = 1L << 14, /// /// The server supports the MULTIAPPEND extension. /// MultiAppend = 1L << 15, /// /// The server supports the BINARY content extension. /// Binary = 1L << 16, /// /// The server supports the UNSELECT extension. /// Unselect = 1L << 17, /// /// The server supports the UIDPLUS extension. /// UidPlus = 1L << 18, /// /// The server supports the CATENATE extension. /// Catenate = 1L << 19, /// /// The server supports the CONDSTORE extension. /// CondStore = 1L << 20, /// /// The server supports the ESEARCH extension. /// ESearch = 1L << 21, /// /// The server supports the SASL-IR extension. /// SaslIR = 1L << 22, /// /// The server supports the COMPRESS extension. /// Compress = 1L << 23, /// /// The server supports the WITHIN extension. /// Within = 1L << 24, /// /// The server supports the ENABLE extension. /// Enable = 1L << 25, /// /// The server supports the QRESYNC extension. /// QuickResync = 1L << 26, /// /// The server supports the SEARCHRES extension. /// SearchResults = 1L << 27, /// /// The server supports the SORT extension. /// Sort = 1L << 28, /// /// The server supports the THREAD extension. /// Thread = 1L << 29, /// /// The server supports the ANNOTATE extension. /// Annotate = 1L << 30, /// /// The server supports the LIST-EXTENDED extension. /// ListExtended = 1L << 31, /// /// The server supports the CONVERT extension. /// Convert = 1L << 32, /// /// The server supports the LANGUAGE extension. /// Language = 1L << 33, /// /// The server supports the I18NLEVEL extension. /// I18NLevel = 1L << 34, /// /// The server supports the ESORT extension. /// ESort = 1L << 35, /// /// The server supports the CONTEXT extension. /// Context = 1L << 36, /// /// The server supports the METADATA extension. /// Metadata = 1L << 37, /// /// The server supports the METADATA-SERVER extension. /// MetadataServer = 1L << 38, /// /// The server supports the NOTIFY extension. /// Notify = 1L << 39, /// /// The server supports the FILTERS extension. /// Filters = 1L << 40, /// /// The server supports the LIST-STATUS extension. /// ListStatus = 1L << 41, /// /// The server supports the SORT=DISPLAY extension. /// SortDisplay = 1L << 42, /// /// The server supports the CREATE-SPECIAL-USE extension. /// CreateSpecialUse = 1L << 43, /// /// The server supports the SPECIAL-USE extension. /// SpecialUse = 1L << 44, /// /// The server supports the SEARCH=FUZZY extension. /// FuzzySearch = 1L << 45, /// /// The server supports the MULTISEARCH extension. /// MultiSearch = 1L << 46, /// /// The server supports the MOVE extension. /// Move = 1L << 47, /// /// The server supports the UTF8=ACCEPT extension. /// UTF8Accept = 1L << 48, /// /// The server supports the UTF8=ONLY extension. /// UTF8Only = 1L << 49, /// /// The server supports the LITERAL- extension. /// LiteralMinus = 1L << 50, /// /// The server supports the APPENDLIMIT extension. /// AppendLimit = 1L << 51, /// /// The server supports the UNAUTHENTICATE extension. /// Unauthenticate = 1L << 52, /// /// The server supports the STATUS=SIZE extension. /// StatusSize = 1L << 53, /// /// The server supports the LIST-MYRIGHTS extension. /// ListMyRights = 1L << 54, /// /// The server supports the OBJECTID extension. /// ObjectID = 1L << 55, /// /// The server supports the REPLACE extension. /// Replace = 1L << 56, #region GMail Extensions /// /// The server supports the XLIST extension (GMail). /// XList = 1L << 60, /// /// The server supports the X-GM-EXT1 extension (GMail). /// GMailExt1 = 1L << 61 #endregion } }