Skip to content

Commit

Permalink
Removing white spaces at beginning and end of attachment file names.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarwer committed Jan 18, 2024
1 parent 6b74326 commit 32d463d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java/edu/stanford/muse/email/EmailFetcherThread.java
Expand Up @@ -838,6 +838,9 @@ private String handleAttachments(EmailDocument ed,int idx, Message m, Part p, Li
String filename = null;
try {
filename = p.getFileName();
if (!filename.trim().isEmpty()) {
filename = filename.trim();
}
} catch (Exception e) {
// seen this happen with:
// Folders__gmail-sent Message #12185 Expected ';', got "Message"
Expand Down

0 comments on commit 32d463d

Please sign in to comment.