-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing S/MIME properties in Outlook files #51
Comments
Hello, looks to me like this happens because the identification of S/MIME messages via ContentType (in extractSMimeHeader()) is a bit too strict. This is being identified correctly, for example:
This isn't (should be valid though):
Based on Unfortunately there is another case - sometimes the ContentType is "application/ms-tnef; name="winmail.dat"". Probably a Exchange default in certain versions. When this happens we can still go through all attachments and/or the messageClass to find matches there. Issue #40 has a example email for this. In addition to all of this identifying S/MIME from msg-properties (in OutlookMessage().setProperty) quite often is not executed because the required properties are not available - not sure why... Maybe it has something to do with the MS-OXMSG protocol version which was used to extract the msg-file with (i.e. Outlook version). I haven't found any good solution for this but the identification by ContentType should always be working as it isn't msg-file specific. I added a PR with a possible fix so you can take a look. After doing all of this I ran some emails through simple-java-mail with the changes from above and I encountered two little issues:
Let me know if I should add issues for those over at simple-java-mail with some more details. |
@bbottema I am facing the same, can you re-evaluate this issue, please? |
See bbottema/simple-java-mail#377
The text was updated successfully, but these errors were encountered: