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:
mguessan 2009-02-25 13:33:37 +00:00
parent 9bd3a96b13
commit 762fbecb98
1 changed files with 2 additions and 0 deletions

View File

@ -433,6 +433,8 @@ public class ImapConnection extends AbstractConnection {
String param = paramTokens.nextToken();
if ("FLAGS".equals(param)) {
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) {
try {
SimpleDateFormat dateParser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");