MailBee.NET Objects 4.0

Imap.Utf7EncodeFolderNames Property

Gets or sets whether MailBee should automatically encode folder names with UTF-7 Modified encoding.

public bool Utf7EncodeFolderNames {get; set;}

Property Value

If true, any method of Imap component which can send requests containing folder names will automatically apply UTF-7 Modified transformation to these names; otherwise, MailBee will leave folder names intact. The default value is true.

Remarks

The developer might need to disable automatic UTF-7 Modified transformations when working with folders whose names do not comply with IMAP4 naming convention which requires non-ASCII characters be encoded with UTF-7M. In this case, the developer can use RawName and RawFolderName instead of Name and FolderName when passing folder name to the Imap class method, or ToUtf7String and FromUtf7String methods to manually perform UTF-7M transformations when desired.

See Also

Imap Class | MailBee.ImapMail Namespace | RawName | RawFolderName | FromUtf7String | ToUtf7String