aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-04-24 22:50:59 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-04-24 22:50:59 +0000
commitcfca14ca097b455fc79aad81799da2786677a262 (patch)
tree6199609f7cb3553b75e844ff3c9d0f8d728d2147 /smtp.c
parent3c92684362150dfd760266a1226223b56fea5f31 (diff)
downloadfetchmail-cfca14ca097b455fc79aad81799da2786677a262.tar.gz
fetchmail-cfca14ca097b455fc79aad81799da2786677a262.tar.bz2
fetchmail-cfca14ca097b455fc79aad81799da2786677a262.zip
Fix debug mode string from SMTP to support LMTP as well.
svn path=/trunk/; revision=4031
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smtp.c b/smtp.c
index 8642feb0..b21192c4 100644
--- a/smtp.c
+++ b/smtp.c
@@ -185,7 +185,7 @@ int SMTP_ehlo(int sock, const char *host, char *name, char *password, int *opt)
if (outlevel >= O_MONITOR)
report(stdout, "%cMTP> %cHLO %s\n",
smtp_mode, (smtp_mode == 'S') ? 'E' : smtp_mode, host);
-
+
*opt = 0;
while ((SockRead(sock, smtp_response, sizeof(smtp_response)-1)) != -1)
{
@@ -199,12 +199,12 @@ int SMTP_ehlo(int sock, const char *host, char *name, char *password, int *opt)
return SM_ERROR;
smtp_response[n] = '\0';
if (outlevel >= O_MONITOR)
- report(stdout, "SMTP< %s\n", smtp_response);
+ report(stdout, "%cMTP< %s\n", smtp_mode, smtp_response);
for (hp = extensions; hp->name; hp++)
if (!strncasecmp(hp->name, smtp_response+4, strlen(hp->name))) {
*opt |= hp->value;
if (strncmp(hp->name, "AUTH ", 5) == 0)
- strncpy(auth_response, smtp_response, sizeof(auth_response));
+ strncpy(auth_response, smtp_response, sizeof(auth_response));
auth_response[sizeof(auth_response)-1] = '\0';
}
if ((smtp_response[0] == '1' || smtp_response[0] == '2' || smtp_response[0] == '3') && smtp_response[3] == ' ') {