mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
IMAP: fix from kolos_dm: implement fake line count in BODYSTRUCTURE and [] block in IMAPTokenizer
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1506 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
4acd9dfe24
commit
7532c0f57a
@ -1068,8 +1068,8 @@ public class ImapConnection extends AbstractConnection {
|
||||
appendBodyStructureValue(buffer, bodyPart.getDescription());
|
||||
appendBodyStructureValue(buffer, bodyPart.getEncoding());
|
||||
appendBodyStructureValue(buffer, bodyPart.getSize());
|
||||
// line count not implemented in JavaMail, return 0
|
||||
appendBodyStructureValue(buffer, 0);
|
||||
// line count not implemented in JavaMail, return fake line count
|
||||
appendBodyStructureValue(buffer, bodyPart.getSize() / 80);
|
||||
buffer.append(')');
|
||||
}
|
||||
|
||||
@ -1699,6 +1699,10 @@ public class ImapConnection extends AbstractConnection {
|
||||
&& nextToken.charAt(nextToken.length() - 1) != ')') {
|
||||
nextToken.append(' ').append(super.nextToken());
|
||||
}
|
||||
while (hasMoreTokens() && nextToken.length() > 0 && nextToken.indexOf("[") != -1
|
||||
&& nextToken.charAt(nextToken.length() - 1) != ']') {
|
||||
nextToken.append(' ').append(super.nextToken());
|
||||
}
|
||||
return nextToken.toString();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user