mirror of
https://github.com/moparisthebest/davmail
synced 2024-08-13 16:53:51 -04:00
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:
parent
b275ba97ea
commit
dd9616ad7d
@ -994,7 +994,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void appendEnvelopeHeaderValue(StringBuilder buffer, String value) throws UnsupportedEncodingException {
|
protected void appendEnvelopeHeaderValue(StringBuilder buffer, String value) throws UnsupportedEncodingException {
|
||||||
if (value.indexOf('"') >= 0) {
|
if (value.indexOf('"') >= 0 || value.indexOf("\\") >= 0) {
|
||||||
buffer.append('{');
|
buffer.append('{');
|
||||||
buffer.append(value.length());
|
buffer.append(value.length());
|
||||||
buffer.append("}\r\n");
|
buffer.append("}\r\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user