dumbster icon indicating copy to clipboard operation
dumbster copied to clipboard

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

Open camboui opened this issue 3 years ago • 0 comments

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 😄

camboui avatar Oct 25 '21 14:10 camboui