From 28f7ecfe8681aa65eb587ee058d46b296c8cee10 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 7 Mar 2011 23:26:14 +0000 Subject: [PATCH] IMAP: fix 3201374 envelope superflous space git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1638 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 075a8779..57d3faea 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -900,7 +900,9 @@ public class ImapConnection extends AbstractConnection { } protected void appendEnvelopeHeader(StringBuilder buffer, String[] value) { - buffer.append(' '); + if (buffer.charAt(buffer.length() - 1) != '(') { + buffer.append(' '); + } if (value != null && value.length > 0) { String unfoldedValue = MimeUtility.unfold(value[0]); if (unfoldedValue.indexOf('"') >= 0) {