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

Emails contain "[email protected]" in the "From" field when the original had no email address in the "From" field

Open jigneshThakkar opened this issue 3 years ago • 6 comments

It is not able to retrieve the from email address.

jigneshThakkar avatar Aug 08 '22 08:08 jigneshThakkar

image Please find this attachment for the example

jigneshThakkar avatar Aug 08 '22 08:08 jigneshThakkar

When does this happen? If I'm not mistaken this is from converting Outlook messages and the problem is we have no way of knowing the from address is empty or problematic.

bbottema avatar Aug 08 '22 08:08 bbottema

Hey,

Yes it is happening when we convert from Outlook messages. We haven't any from email address. Also, as per my above attachment there are two field in outlook named as "email account" and "name" contains the value. Is there any way we can fetch those name ?

jigneshThakkar avatar Aug 10 '22 09:08 jigneshThakkar

They might have been parsed as headers, but I can't check that without the .msg

bbottema avatar Aug 10 '22 11:08 bbottema

Untitled.zip

I have attached the msg file here. Please look at once . Let me know if you need more details

jigneshThakkar avatar Aug 10 '22 11:08 jigneshThakkar

Any Update?

jigneshThakkar avatar Aug 16 '22 10:08 jigneshThakkar

Can you make an example where the to-address is not the same? I'm not sure which Outlook field is the From if the To field has the same value. It's a bit trial-and-error unfortunately with Outlook messages.

And btw, in Outlook itself I don't see a from address (or I don't know where to look).

bbottema avatar Dec 25 '22 14:12 bbottema

Bump.

bbottema avatar Jan 24 '23 17:01 bbottema

Any update, @jigneshThakkar?

bbottema avatar Feb 20 '23 16:02 bbottema

Hi @bbottema attached is an example email behaving in this way Issue 1 - Sent mail.zip

This problem occurs when the .msg file comes from the Sent mail folder in Outlook. As far as I can tell the sender's email andrew.mcquillen@ci****a.co.uk appears in the MSG source in 3 locations. I've done some digging and it seems to possibly be that these relate to the real address of the sender, the address associated with the mailbox from which the MSG was sourced, and the address associated with whoever last touched the email. However we are not sure which yet.

We do have a developer working on this issue at the moment so will share findings when possible.

atmcq avatar Jun 09 '23 09:06 atmcq

So I just did a test to double check. The results I see with outlook-message-parser, the library used by Simple Java Mail, contains exactly the same From: details that I see when opening the .msg directly with Outlook. I don't know what else to make of this.

image

Outlook: image

I do see the email address you mentioned in the properties list, mapped to a bunch of numbers that don't mean anything to me:

image

bbottema avatar Oct 12 '23 12:10 bbottema