mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
IMAP: ... but BODYSTRUCTURE size should be rfc822size
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@403 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f969e6582f
commit
92809cdde9
@ -472,7 +472,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
if ("BODY.PEEK[TEXT]".equals(param)) {
|
if ("BODY.PEEK[TEXT]".equals(param)) {
|
||||||
PartOutputStream bodyOutputStream = new PartOutputStream(baos, false, true);
|
PartOutputStream bodyOutputStream = new PartOutputStream(baos, false, true);
|
||||||
message.write(bodyOutputStream);
|
message.write(bodyOutputStream);
|
||||||
rfc822size = bodyOutputStream.size;
|
rfc822size = bodyOutputStream.size;
|
||||||
} else {
|
} else {
|
||||||
message.write(baos);
|
message.write(baos);
|
||||||
rfc822size = baos.size();
|
rfc822size = baos.size();
|
||||||
@ -480,7 +480,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
baos.close();
|
baos.close();
|
||||||
DavGatewayTray.debug("Message size: " + message.size + " actual size:" + baos.size() + " message+headers: " + (message.size + baos.size()));
|
DavGatewayTray.debug("Message size: " + message.size + " actual size:" + baos.size() + " message+headers: " + (message.size + baos.size()));
|
||||||
if (bodystructure) {
|
if (bodystructure) {
|
||||||
buffer.append(" BODYSTRUCTURE (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"windows-1252\") NIL NIL \"8BIT\" ").append(baos.size()).append(" NIL))");
|
buffer.append(" BODYSTRUCTURE (\"TEXT\" \"PLAIN\" (\"CHARSET\" \"windows-1252\") NIL NIL \"8BIT\" ").append(rfc822size).append(" NIL))");
|
||||||
}
|
}
|
||||||
buffer.append(" RFC822.SIZE ").append(rfc822size).append(" ").append("BODY[]").append(" {").append(baos.size()).append("}");
|
buffer.append(" RFC822.SIZE ").append(rfc822size).append(" ").append("BODY[]").append(" {").append(baos.size()).append("}");
|
||||||
sendClient(buffer.toString());
|
sendClient(buffer.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user