IMAP: Fix 3479993, backslash in header

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1885 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-01-26 21:25:32 +00:00
parent b275ba97ea
commit dd9616ad7d
1 changed files with 1 additions and 1 deletions

View File

@ -994,7 +994,7 @@ public class ImapConnection extends AbstractConnection {
}
protected void appendEnvelopeHeaderValue(StringBuilder buffer, String value) throws UnsupportedEncodingException {
if (value.indexOf('"') >= 0) {
if (value.indexOf('"') >= 0 || value.indexOf("\\") >= 0) {
buffer.append('{');
buffer.append(value.length());
buffer.append("}\r\n");