POP3: InetMessage fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@7498 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-07-10 07:57:43 +00:00
commit ec2833c3c4
4 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ static const char default_mime[] = "application/octet-stream";
String SmtpMail::Encode(const String& text)
{
String txt = ToCharset(CHARSET_UTF8, text);
String r = "=?Utf-8?q?";
String r = "=?UTF-8?Q?";
for(const char *s = txt; *s; s++) {
if((byte)*s < ' ' || (byte)*s > 127 || *s == '=' || *s == '?' || *s == ' ')
r << '=' << FormatIntHexUpper((byte)*s, 2);