dumbster
dumbster copied to clipboard
Data with \r\n\t not handled by input scanner \r\n
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 😄