diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-04-24 22:50:59 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-04-24 22:50:59 +0000 |
commit | cfca14ca097b455fc79aad81799da2786677a262 (patch) | |
tree | 6199609f7cb3553b75e844ff3c9d0f8d728d2147 /smtp.c | |
parent | 3c92684362150dfd760266a1226223b56fea5f31 (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] == ' ') { |