Open JesperPeterse opened 1 year ago
Unfortunately this seems to be an issue with outlook-message-parser
, which is version 1.9.6, the latest version. I'll keep this issue open and check regularly with the library whether or not there is an update. At the moment I can't fix this for you.
Thanks for checking j3lte.
Yeah, I also noted that :/. I tried many things, like getting al the recipients (msg.getRecipients()) and seeing if I can check what type of recipient it is, but that's not available.
Well one thing you could try, is updating Apache POI. Outlook MSG Parser seems to be a wrapper around POI, which deals with Microsoft Documents (like Outlook MSG). The library implements version 5.2.2, while the new version is 5.2.3 (5.2.4 isn't out yet). Keep in mind that it then also needs updating other dependencies.
Might be worth a try. Haven't checked it myself, might look into it if I have the time...
I have no idea how to do that, just a Mendix developer. I filed an issue for the makers of the message parser: https://github.com/bbottema/outlook-message-parser/issues Hope they can fix it :)
In the Outlook MSG Parser, in the java action ParseOutlookMessageFromFileDocument.java. If you print out the msg from OutlookMessage msg = parser.parseMsg(is);
You can see that the To/Cc are always the same, whilst this is not true in the original e-mail.
For example, the msg looks like this
From: "Jesper Peterse" jspm.peterse@tvm.nl To: jgpmmpeterse@gmail.com; "jesper@golowcode.nl"; "jspm.peterse@tvm.nl" ; "jspm.peterse@tvm.nl" Cc: jgpmmpeterse@gmail.com; "jesper@golowcode.nl" ; "jspm.peterse@tvm.nl" ; "jspm.peterse@tvm.nl" Date: Mon, 6 Feb 2023 09:55:42 CET
Subject: lkjkl
0 outlookAttachments.
While in the original e-mail, I had jspm.peterse@tvm.nl and jgpmmpeterse@gmail.com in the To, and jspm.peterse@tvm.nl and jesper@golowcode.nl in the Cc.
I'm not sure if you can fix this, since it might be an issue with the simplejavamail library