PowerTCP Mail for .NET
AutoUtf8 Property




If the server supports the "UTF8=ACCEPT" capability, a true value will enable the use of UTF8 encoding in quoted strings.
Syntax
<DefaultValueAttribute()>
Public Property AutoUtf8 As Boolean
Dim instance As ImapSession
Dim value As Boolean
 
instance.AutoUtf8 = value
 
value = instance.AutoUtf8
[DefaultValue()]
public bool AutoUtf8 {get; set;}
[DefaultValue()]
public: __property bool get_AutoUtf8();
public: __property void set_AutoUtf8( 
   bool value
);
[DefaultValue()]
public:
property bool AutoUtf8 {
   bool get();
   void set (    bool value);
}
Remarks

RFC 6855 specifies that UTF8 encoding can be used within quoted strings (breaking the IMAP 7-bit rule) if this option is enabled. Popular servers like Gmail support this capability, which is utilized for encoding and decoding UNICODE strings. This is useful for searching and listing mailboxes. When enabled, UTF8 encoding is used for mailbox names (instead of Imap.MailboxNameEncoding).

The user can determine what encoding if being used by checking the Imap.Connection.Encoding property. System.Text.Encoding.ASCII is used for normal 7-bit operation, and System.Text.Encoding.UTF8 is used when the "UTF8=ACCEPT" capability has been enabled and is in use.

See Also

Reference

ImapSession Class
ImapSession Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic