ImapUtilsToUtf7QuotedString Method |
Namespace: MailBee.ImapMail
This method converts the source string contents into UTF-7 Modified string and escapes all quote and backslash characters and encloses the result in quotes. If s is a null reference (Nothing) in Visual Basic), empty quoted string ("") is returned.
The method can be used to refer international folder names when building an IMAP4 request to create/delete/rename or otherwise manage folder manually (i.e. using ExecuteCustomCommand(String, String) method).
Note |
---|
SelectFolder(String), CreateFolder(String), etc apply character escaping and UTF-7 Modified transformations automatically (unless Utf7EncodeFolderNames is false). The developer should not attempt to use ToUtf7QuotedString(String) method in this case. Even if Utf7EncodeFolderNames is false, quote and backslash characters in folder names are still automatically escaped, and the developer should use ToUtf7String(String) rather than ToUtf7QuotedString(String) to apply UTF-7 Modified. |