IMAP: implement fake BODYSTRUCTURE for bigger messages
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@399 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
9bd3a96b13
commit
762fbecb98
|
@ -433,6 +433,8 @@ public class ImapConnection extends AbstractConnection {
|
||||||
String param = paramTokens.nextToken();
|
String param = paramTokens.nextToken();
|
||||||
if ("FLAGS".equals(param)) {
|
if ("FLAGS".equals(param)) {
|
||||||
buffer.append(" FLAGS (").append(message.getImapFlags()).append(")");
|
buffer.append(" FLAGS (").append(message.getImapFlags()).append(")");
|
||||||
|
} else if ("BODYSTRUCTURE".equals(param)) {
|
||||||
|
buffer.append(" BODYSTRUCTURE (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"windows-1252\") NIL NIL \"8BIT\" ").append(message.size).append(" NIL))");
|
||||||
} else if ("INTERNALDATE".equals(param) && message.date != null && message.date.length() > 0) {
|
} else if ("INTERNALDATE".equals(param) && message.date != null && message.date.length() > 0) {
|
||||||
try {
|
try {
|
||||||
SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
||||||
|
|
Loading…
Reference in New Issue