From f94bcf233ed377d49753551c5703e9fd416ec658 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 2 Nov 2009 21:37:57 +0000 Subject: [PATCH] IMAP: use upper case NIL in ENVELOPE git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@813 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index 7ffecd6f..e97e6f4e 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -655,7 +655,7 @@ public class ImapConnection extends AbstractConnection { } catch (MessagingException me) { DavGatewayTray.warn(me); // send fake envelope - buffer.append(" nil nil nil nil nil nil nil nil nil nil"); + buffer.append(" NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL"); } buffer.append(')'); } @@ -667,7 +667,7 @@ public class ImapConnection extends AbstractConnection { buffer.append(MimeUtility.unfold(value[0])); buffer.append('"'); } else { - buffer.append("nil"); + buffer.append("NIL"); } } @@ -683,9 +683,9 @@ public class ImapConnection extends AbstractConnection { if (personal != null) { buffer.append('"').append(MimeUtility.encodeText(personal)).append('"'); } else { - buffer.append("nil"); + buffer.append("NIL"); } - buffer.append(" nil "); + buffer.append(" NIL "); String mail = address.getAddress(); int atIndex = mail.indexOf('@'); if (atIndex >= 0) { @@ -693,20 +693,20 @@ public class ImapConnection extends AbstractConnection { buffer.append(' '); buffer.append('"').append(mail.substring(atIndex + 1)).append('"'); } else { - buffer.append("nil nil"); + buffer.append("NIL NIL"); } buffer.append(')'); } buffer.append(')'); } catch (AddressException e) { DavGatewayTray.warn(e); - buffer.append("nil"); + buffer.append("NIL"); } catch (UnsupportedEncodingException e) { DavGatewayTray.warn(e); - buffer.append("nil"); + buffer.append("NIL"); } } else { - buffer.append("nil"); + buffer.append("NIL"); } }