Skip to content
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

Data with \r\n\t not handled by input scanner \r\n #9

Open
camboui opened this issue Oct 25, 2021 · 0 comments
Open

Data with \r\n\t not handled by input scanner \r\n #9

camboui opened this issue Oct 25, 2021 · 0 comments

Comments

@camboui
Copy link

camboui commented Oct 25, 2021

Hi,

I found at that javax.mail.internet, is splitting InternetAddress lists longer than 76 characters with character "\r\n\t". See line 503 of https://github.com/javaee/javamail/blob/master/mail/src/main/java/javax/mail/internet/InternetAddress.java

I guess it's standart. However, it seems that dumbster doesn't handle it yet.

STEP TO REPRODUCE :
Send an email with Header "To" value set to "[email protected], [email protected], \r\n\[email protected]"

BEHAVIOUR
email.getHeaderValue("To"); equals "[email protected], [email protected],"

EXPECTED BEHAVIOUR
email.getHeaderValue("To"); equals "[email protected], [email protected], [email protected]"

PROBABLE CAUSE
Scanner reading data line by line with"\r\n" pattern. It leaves an "\t" which then prevent com.dumbster.smtp.SmtpMessage.java.store() to append header value.

Thanks,
Hope this post will at least make people save some time 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant