-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
[bug] Addresses passed as string are not always interpreted correctly #484
Comments
Do you have a message for me to work with? |
Yes, sorry. The original mail was confidential. I was able to reproduce it with outlook by selecting 'Request a <Delivery|Read> Receipt'. When calling |
Some context to the problem we are facing: we have this problem with msg #40. As a workaround, we convert When we have a signed email which has one of the headers above, the first step Stacktrace:
|
I found the problem to be more widespread, where the builder api for setting email addresses from strings doesn't call the appropriate parser method, which should separate the (optional) name part from the address part. It was a quick fix as all the logic was in place, but it wasn't called from all the appropriate places. Thank you for your analyses as well as the example email, it helped me verify the fix real quick. |
Fix released in 8.5.0. |
When parsing msg with valid
Disposition-Notification-To
orReturn-Receipt-To
theRecipient
is not filled correctly. I assume the same applies toReturn-Path
.Sample header:
Disposition-Notification-To: Fname Lname <[email protected]>
Expected:
Recipient{name='Fname Lname', address='[email protected]', type=null}
Actual:
Recipient{name='null', address='Fname Lname <[email protected]>', type=null}
The problem happens in
OutlookEmailConverter.parseHeader(String headerName, String headerValue, EmailPopulatingBuilder builder)
where the header value is passed toEmailPopulatingBuilder.withDispositionNotificationTo(String address)
.The text was updated successfully, but these errors were encountered: