mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 11:42:23 -05:00
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
This commit is contained in:
parent
9d074067df
commit
f94bcf233e
@ -655,7 +655,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
} catch (MessagingException me) {
|
} catch (MessagingException me) {
|
||||||
DavGatewayTray.warn(me);
|
DavGatewayTray.warn(me);
|
||||||
// send fake envelope
|
// 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(')');
|
buffer.append(')');
|
||||||
}
|
}
|
||||||
@ -667,7 +667,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
buffer.append(MimeUtility.unfold(value[0]));
|
buffer.append(MimeUtility.unfold(value[0]));
|
||||||
buffer.append('"');
|
buffer.append('"');
|
||||||
} else {
|
} else {
|
||||||
buffer.append("nil");
|
buffer.append("NIL");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -683,9 +683,9 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
if (personal != null) {
|
if (personal != null) {
|
||||||
buffer.append('"').append(MimeUtility.encodeText(personal)).append('"');
|
buffer.append('"').append(MimeUtility.encodeText(personal)).append('"');
|
||||||
} else {
|
} else {
|
||||||
buffer.append("nil");
|
buffer.append("NIL");
|
||||||
}
|
}
|
||||||
buffer.append(" nil ");
|
buffer.append(" NIL ");
|
||||||
String mail = address.getAddress();
|
String mail = address.getAddress();
|
||||||
int atIndex = mail.indexOf('@');
|
int atIndex = mail.indexOf('@');
|
||||||
if (atIndex >= 0) {
|
if (atIndex >= 0) {
|
||||||
@ -693,20 +693,20 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
buffer.append(' ');
|
buffer.append(' ');
|
||||||
buffer.append('"').append(mail.substring(atIndex + 1)).append('"');
|
buffer.append('"').append(mail.substring(atIndex + 1)).append('"');
|
||||||
} else {
|
} else {
|
||||||
buffer.append("nil nil");
|
buffer.append("NIL NIL");
|
||||||
}
|
}
|
||||||
buffer.append(')');
|
buffer.append(')');
|
||||||
}
|
}
|
||||||
buffer.append(')');
|
buffer.append(')');
|
||||||
} catch (AddressException e) {
|
} catch (AddressException e) {
|
||||||
DavGatewayTray.warn(e);
|
DavGatewayTray.warn(e);
|
||||||
buffer.append("nil");
|
buffer.append("NIL");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
DavGatewayTray.warn(e);
|
DavGatewayTray.warn(e);
|
||||||
buffer.append("nil");
|
buffer.append("NIL");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
buffer.append("nil");
|
buffer.append("NIL");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user