From b5eec8f8bd154c9ce828c30184a65397df72c1a9 Mon Sep 17 00:00:00 2001 From: j-dimension Date: Fri, 22 Sep 2023 23:37:27 +0200 Subject: [PATCH] enabled "open in external mailer" for msg. enabled long attachment file names. issue #1986 --- .../jlawyer/client/editors/files/ArchiveFilePanel.java | 2 +- .../src/com/jdimension/jlawyer/client/mail/MailContentUI.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java index bce4ec426..e35d7a713 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/editors/files/ArchiveFilePanel.java @@ -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); } diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java index d185eefa8..c2c5ed303 100755 --- a/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java +++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/mail/MailContentUI.java @@ -1321,9 +1321,9 @@ public static void setOutlookMessageImpl(MailContentUI contentUI, OutlookMessage List 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); }