aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-30 20:10:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-30 20:10:02 +0000
commitb20a403a58d2a50e16b0057259b3c6d37e1685ea (patch)
tree2d33927872459562e13921f1c1a922fb16d49617 /smtp.c
parent207601ccb5c5c4af8ebefb43ac58b5e95c7fe01e (diff)
downloadfetchmail-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.c3
1 files changed, 3 insertions, 0 deletions
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] != '-')