EnvelopeGmailLabels Property
Gets the list of Gmail-specific labels associated with the message.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public string[] GmailLabels { get; }

Property Value

Type: String
A 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 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