Converts the specified string into the IMAP4 UTF-7 Modified string.
The IMAP4 UTF-7 Modified string, or a null reference (Nothing in Visual Basic) if s is a null reference.
ToUtf7QuotedString 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 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.
ToUtf7String method should be used for strings which will be quote/slash-escaped later (for instance, if the result of ToUtf7String is passed to a method such as SelectFolder which automatically escapes folder names).
Note By default (Utf7EncodeFolderNames is true), all Imap methods which deal with folder names apply UTF-7M automatically (and there is no need to use ToUtf7String 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.
ImapUtils Class | MailBee.ImapMail Namespace | ToUtf7QuotedString