We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193f846 commit 7dca637Copy full SHA for 7dca637
FlowCrypt/src/main/java/com/flowcrypt/email/service/EmailSyncService.java
@@ -573,7 +573,7 @@ private ArrayList<AttachmentInfo> getAttachmentsInfoFromPart(AccountDao accountD
573
headers = internetHeaders.getHeader(JavaEmailConstants.HEADER_X_ATTACHMENT_ID);
574
}
575
576
- if (headers != null && headers.length > 0) {
+ if (headers != null && headers.length > 0 && !TextUtils.isEmpty(bodyPart.getFileName())) {
577
AttachmentInfo attachmentInfo = new AttachmentInfo();
578
attachmentInfo.setName(bodyPart.getFileName());
579
attachmentInfo.setEncodedSize(bodyPart.getSize());
0 commit comments