*
* @return Map<String, StreamAttachment> for all attachment parts
*/
public @NotNull Map<String, Attachment> getAttachmentParts() {
if (!gotAll) {
MIMEPart rootPart = (start != null) ? message.getPart(start) : message.getPart(0);
List<MIMEPart> parts = message.getAttachments();
for(MIMEPart part : parts) {
if (part != rootPart) {
PartAttachment attach = new PartAttachment(part);
attachments.put(attach.getContentId(), attach);