diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-30 20:10:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-30 20:10:02 +0000 |
commit | b20a403a58d2a50e16b0057259b3c6d37e1685ea (patch) | |
tree | 2d33927872459562e13921f1c1a922fb16d49617 /smtp.c | |
parent | 207601ccb5c5c4af8ebefb43ac58b5e95c7fe01e (diff) | |
download | fetchmail-b20a403a58d2a50e16b0057259b3c6d37e1685ea.tar.gz fetchmail-b20a403a58d2a50e16b0057259b3c6d37e1685ea.tar.bz2 fetchmail-b20a403a58d2a50e16b0057259b3c6d37e1685ea.zip |
Try to accomodate spam filtering
svn path=/trunk/; revision=588
Diffstat (limited to 'smtp.c')
-rw-r--r-- | smtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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] != '-') |