projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Read multiline SMTP-Replies; we need to analyze all of them to detect the proper...
[citadel.git]
/
citadel
/
modules
/
smtp
/
smtp_clienthandlers.c
diff --git
a/citadel/modules/smtp/smtp_clienthandlers.c
b/citadel/modules/smtp/smtp_clienthandlers.c
index 70373a89623d7a51ed115d600a2196c06e9a4743..9e5d6119319a362aa846761dd4e3f89815b671ce 100644
(file)
--- a/
citadel/modules/smtp/smtp_clienthandlers.c
+++ b/
citadel/modules/smtp/smtp_clienthandlers.c
@@
-166,6
+166,11
@@
eNextState SMTPC_read_EHLO_reply(SmtpOutMsg *Msg)
{
if (strstr(ChrPtr(Msg->IO.IOBuf), "LOGIN") != NULL)
Msg->SendLogin = 1;
+ else if ((Msg->MultiLineBuf != NULL) &&
+ strstr(ChrPtr(Msg->MultiLineBuf), "LOGIN") != NULL)
+ {
+ Msg->SendLogin = 1;
+ }
}
}
/* else we fall back to 'helo' */