S22.Imap
S22.Imap copied to clipboard
UTF7 code doesn't encode 0x7F character as BASE64.
Pointed out by Aleksey on stackoverflow:
Line 347 in Util.cs
should be
if (codepoint > 0x1F && codepoint < 0x7F) {
instead of
if (codepoint > 0x1F && codepoint < 0x80) {
Line 354 in Util.cs
should be
if (codepoint > 0x1F && codepoint < 0x7F)
instead of
if (codepoint > 0x1F && codepoint < 0x80)
because according to RFC-3501
[...] All other characters (octet values 0x00-0x1f and 0x7f-0xff) are represented in modified BASE64 [...]
0x7F should not be passed through unencoded, because it is a control character (DEL
) and not a printable ASCII-character.