1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

IMAP: fix 3201374 envelope superflous space

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1638 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-03-07 23:26:14 +00:00
parent 61475f7e87
commit 28f7ecfe86

View File

@ -900,7 +900,9 @@ public class ImapConnection extends AbstractConnection {
} }
protected void appendEnvelopeHeader(StringBuilder buffer, String[] value) { protected void appendEnvelopeHeader(StringBuilder buffer, String[] value) {
buffer.append(' '); if (buffer.charAt(buffer.length() - 1) != '(') {
buffer.append(' ');
}
if (value != null && value.length > 0) { if (value != null && value.length > 0) {
String unfoldedValue = MimeUtility.unfold(value[0]); String unfoldedValue = MimeUtility.unfold(value[0]);
if (unfoldedValue.indexOf('"') >= 0) { if (unfoldedValue.indexOf('"') >= 0) {