1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

SMTP: fix by Marc Macenko, case sensitive RCPT TO:

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@812 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-11-02 21:17:48 +00:00
parent 1c67d85330
commit 9d074067df

View File

@ -114,7 +114,7 @@ public class SmtpConnection extends AbstractConnection {
}
} else if ("RCPT".equalsIgnoreCase(command)) {
if (state == State.STARTMAIL || state == State.RECIPIENT) {
if (line.startsWith("RCPT TO:")) {
if (line.toUpperCase().startsWith("RCPT TO:")) {
state = State.RECIPIENT;
try {
InternetAddress internetAddress = new InternetAddress(line.substring("RCPT TO:".length()));