simple-java-mail icon indicating copy to clipboard operation
simple-java-mail copied to clipboard

Improve support for converting emails to Outlook messages

Open bbottema opened this issue 6 years ago • 6 comments

Simple Java Mail supports reading Outlook messages to EML, MimeMessage and Email, but not back to Outlook messages. This should be possible with some changes to https://github.com/bbottema/outlook-message-parser.

bbottema avatar Aug 21 '18 15:08 bbottema

It seems Java options are very limited. The one library that seems to be able to do something, is very limited and obstructed by the difficult Outlook file spec.

This doesn't seem a viable path right now.

bbottema avatar Aug 08 '20 07:08 bbottema

Do you plan to add support for voting buttons? As in Send and Read Voting response?

Below is the winmail.dat file in a hex editor, which is an incoming email with Voting Response enable from outlook. image

I wonder if its possible to send a similar email using simple-java-mail API.

imranrajjad avatar May 04 '21 08:05 imranrajjad

@imranrajjad, as far as I know this is not an open source RFC spec, but Outlook proprietary format. Simple Java Mail can only read outlook message (limited capability, as provided by outlook-message-parser), but not create and send them, only the general email as defined by the Multipurpose Internet Mail Extensions (MIME) internet standard, which includes a bunch of RFCs, including Calendar.

bbottema avatar May 04 '21 20:05 bbottema

@bbottema moving forward, can the Calender implementation be taken as a base example to implement this support? Unfortunately this is way beyond me but I can surely dedicate someone from myside to extend the API if we are pushed in the right direction.

imranrajjad avatar May 05 '21 07:05 imranrajjad

I don't think this is going to be possible, as this behavior is not part of any MIME specification and as such not supported by the underlying low-level Java mailing framework Jakarta Mail. But more to the point: voting buttons are a tracking feature of Outlook specifically, backed by an Exchange server which keeps track of the votes. This is all managed through Outlook itself (as an exchange client, rather than an email viewer). Calendar invitations on the other hand are completely self-contained and it is up to the email viewer to be able to process them or simply offer them as downloadable .ics file attachments.

So it doesn't make sense (to my limited knowledge) to do this from Java or anything other than Outlook itself.

bbottema avatar May 05 '21 09:05 bbottema

voting buttons are a tracking feature of Outlook specifically, backed by an Exchange server which keeps track of the votes

Well I do not wish to track anything, only send an email with Voting buttons and read the response when the recipient selects a voting option (which itself an email in Inbox), leaving the tracking completely to the exchange server. Anyway, thanks for the feedback

imranrajjad avatar May 05 '21 12:05 imranrajjad