Skip to content

Commit

Permalink
enabled "open in external mailer" for msg. enabled long attachment fi…
Browse files Browse the repository at this point in the history
…le names. issue #1986
  • Loading branch information
j-dimension committed Sep 22, 2023
1 parent 7e680ca commit b5eec8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3555,7 +3555,7 @@ public void showDocumentsPopup(MouseEvent evt) {
if (selectedDocs.size() == 1) {

ArchiveFileDocumentsBean value = selectedDocs.get(0);
if (value.getName().toLowerCase().endsWith(".eml")) {
if (value.getName().toLowerCase().endsWith(".eml") || value.getName().toLowerCase().endsWith(".msg")) {
this.mnuOpenInExternalMailer.setEnabled(true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1321,9 +1321,9 @@ public static void setOutlookMessageImpl(MailContentUI contentUI, OutlookMessage

List<OutlookFileAttachment> attachments = msg.fetchTrueAttachments();
for (OutlookFileAttachment att : attachments) {
String attFileName=att.getFilename();
String attFileName=att.getLongFilename();
if(StringUtils.isEmpty(attFileName))
attFileName=att.getLongFilename();
attFileName=att.getFilename();
if(!StringUtils.isEmpty(attFileName))
((DefaultListModel) lstAttachments.getModel()).addElement(attFileName);
}
Expand Down

0 comments on commit b5eec8f

Please sign in to comment.