EnvelopeGmailLabels Property |
Gets the list of Gmail-specific labels associated with the message.
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public string[] GmailLabels { get; }
Public ReadOnly Property GmailLabels As String()
Get
Property Value
Type:
StringA string array containing Gmail labels of the message, or a null reference (
Nothing in Visual Basic) in case if this value is not available
(usually, if the server is not Gmail or
GmailLabels was not requested when downloading envelopes).
Remarks Gmail treats labels as folders for the purposes of IMAP. Thus, labels can be folder names but also
there can be custom labels and therefore the message can have multiple labels attached while it cannot be in multiple folders.
To use this value, make sure the mail server is Gmail-compatible ("x-gm-ext-1" capability must be listed in
GetExtensions results).
Note |
---|
By default, labels names are UTF7M-encoded (for instance, when they contain international characters). To get human-readable version of these labels, use
GetUtf7DecodedGmailLabels method. |
See Also