Skip to content

Commit

Permalink
Set mail.mime.decodefilename in `testAttachmentWithUTF8NameAndGreen…
Browse files Browse the repository at this point in the history
…MailApi`
  • Loading branch information
boris-petrov committed Mar 8, 2023
1 parent 9926878 commit abb33a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ public void messagesAdded(MessageCountEvent e) {

@Test
public void testAttachmentWithUTF8NameAndGreenMailApi() throws MessagingException, IOException {
System.setProperty("mail.mime.decodefilename", "true");

greenMail.setUser("to@localhost", "pwd");
final IMAPStore store = greenMail.getImap().createStore();
store.connect("to@localhost", "pwd");
Expand Down

0 comments on commit abb33a9

Please sign in to comment.