From b20a403a58d2a50e16b0057259b3c6d37e1685ea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 30 Nov 1996 20:10:02 +0000 Subject: Try to accomodate spam filtering svn path=/trunk/; revision=588 --- smtp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'smtp.c') diff --git a/smtp.c b/smtp.c index 77ced235..ea75560c 100644 --- a/smtp.c +++ b/smtp.c @@ -18,6 +18,8 @@ #include "fetchmail.h" #include "smtp.h" +int smtp_response; /* numeric value of SMTP response code */ + int SMTP_helo(FILE *sockfp,char *host) /* send a "HELO" message to the SMTP listener */ { @@ -112,6 +114,7 @@ static int SMTP_check(FILE *sockfp) buf[n] = '\0'; if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP< %s\n", buf); + smtp_response = atoi(buf); if ((buf[0] == '1' || buf[0] == '2' || buf[0] == '3') && buf[3] == ' ') return SM_OK; else if (buf[3] != '-') -- cgit v1.2.3