mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32: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:
parent
61475f7e87
commit
28f7ecfe86
@ -900,7 +900,9 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void appendEnvelopeHeader(StringBuilder buffer, String[] value) {
|
protected void appendEnvelopeHeader(StringBuilder buffer, String[] value) {
|
||||||
|
if (buffer.charAt(buffer.length() - 1) != '(') {
|
||||||
buffer.append(' ');
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user