mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
IMAP: fix 3480516, () instead of NIL on empty envelope header
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1886 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
dd9616ad7d
commit
94948efb73
@ -959,6 +959,7 @@ public class ImapConnection extends AbstractConnection {
|
||||
try {
|
||||
String unfoldedValue = MimeUtility.unfold(value[0]);
|
||||
InternetAddress[] addresses = InternetAddress.parseHeader(unfoldedValue, false);
|
||||
if (addresses != null && addresses.length > 1) {
|
||||
buffer.append('(');
|
||||
for (InternetAddress address : addresses) {
|
||||
buffer.append('(');
|
||||
@ -981,6 +982,9 @@ public class ImapConnection extends AbstractConnection {
|
||||
buffer.append(')');
|
||||
}
|
||||
buffer.append(')');
|
||||
} else {
|
||||
buffer.append("NIL");
|
||||
}
|
||||
} catch (AddressException e) {
|
||||
DavGatewayTray.warn(e);
|
||||
buffer.append("NIL");
|
||||
|
Loading…
x
Reference in New Issue
Block a user