summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3b238b9)
SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 8.33
-static char sccsid[] = "@(#)srvrsmtp.c 8.32 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.33 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 8.32 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 8.33 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
setproctitle("server %s startup", CurSmtpClient);
expand("\201e", inp, &inp[sizeof inp], e);
setproctitle("server %s startup", CurSmtpClient);
expand("\201e", inp, &inp[sizeof inp], e);
+ p = strchr(inp, '\n');
+ if (p != NULL)
+ *p++ = '\0';
if (BrokenSmtpPeers)
{
message("220 %s", inp);
}
else
{
if (BrokenSmtpPeers)
{
message("220 %s", inp);
}
else
{
- message("220-%s", inp);
+ char *q = inp;
+
+ while (q != NULL)
+ {
+ message("220-%s", q);
+ q = p;
+ p = strchr(p, '\n');
+ if (p != NULL)
+ *p++ = '\0';
+ }
message("220 ESMTP spoken here");
}
protocol = NULL;
message("220 ESMTP spoken here");
}
protocol = NULL;