public static string ToUtf7String( string s )
Public Shared Function ToUtf7String ( s As String ) As String
ToUtf7QuotedString(String) method should be used in the case if the developer constructs the entire request manually (for instance, for further sending it to the server using ExecuteCustomCommand(String, String) method) and wants the target string being enclosed in quotes (including proper escaping of any quotes inside the string) as well as being UTF-7M transformed.
SelectFolder(String) which automatically escapes folder names).method should be used for strings which will be quote/slash-escaped later (for instance, if the result of is passed to a method such as
|By default (Utf7EncodeFolderNames is true), all Imap methods which deal with folder names apply UTF-7M automatically (and there is no need to use method). Even if Utf7EncodeFolderNames is false and there is a need to process (e.g. select) a folder which name was received from the server, it's usually easier to directly use raw names of folders (e.g. RawName) than to manually convert decoded names (such as Name) back to UTF-7M.|