IMAP: write message without headers on BODY[TEXT] fetch

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2149 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2013-06-14 10:17:14 +00:00
parent f03235c5f4
commit b3f60318e0
1 changed files with 2 additions and 2 deletions

View File

@ -850,7 +850,7 @@ public class ImapConnection extends AbstractConnection {
partInputStream = messageWrapper.getRawInputStream();
} else if ("TEXT".equals(partIndexString)) {
// write message without headers
partOutputStream = new PartialOutputStream(baos, startIndex, maxSize);
partOutputStream = new PartOutputStream(baos, false, true, startIndex, maxSize);
partInputStream = messageWrapper.getRawInputStream();
} else if ("RFC822.HEADER".equals(param) || partIndexString.startsWith("HEADER")) {
// Header requested fetch headers
@ -927,7 +927,7 @@ public class ImapConnection extends AbstractConnection {
buffer.append(" {").append(baos.size()).append('}');
sendClient(buffer.toString());
// log content if less than 2K
if (LOGGER.isDebugEnabled() && baos.size() < 2048) {
if (LOGGER.isDebugEnabled() /*&& baos.size() < 2048*/) {
LOGGER.debug(new String(baos.toByteArray(), "UTF-8"));
}
os.write(baos.toByteArray());