Added attachment section IDs

This commit is contained in:
M66B
2023-06-21 12:23:21 +02:00
parent c20c416730
commit 7d1ca2840f
6 changed files with 2984 additions and 3 deletions

View File

@@ -71,6 +71,10 @@ public class IMAPBodyPart extends MimeBodyPart implements ReadableMime {
return;
}
public String getSectionId() {
return this.sectionId;
}
@Override
public int getSize() throws MessagingException {
return bs.size;
@@ -173,7 +177,6 @@ public class IMAPBodyPart extends MimeBodyPart implements ReadableMime {
// Check whether this message is expunged
message.checkExpunged();
if (p.isREV1() && (message.getFetchBlockSize() != -1))
return new IMAPInputStream(message, sectionId,
message.ignoreBodyStructureSize() ? -1 : bs.size, pk);