diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-06-02 15:44:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-06-02 15:44:01 +0000 |
commit | 1b1e63b4809236afa6741773cf27604f380257e1 (patch) | |
tree | 1d3f2c83ecccc56498632d9bfb50f79bbd310d71 /driver.c | |
parent | 79a2ab0985b5964aef6025edb7a625af4eebfd29 (diff) | |
download | fetchmail-1b1e63b4809236afa6741773cf27604f380257e1.tar.gz fetchmail-1b1e63b4809236afa6741773cf27604f380257e1.tar.bz2 fetchmail-1b1e63b4809236afa6741773cf27604f380257e1.zip |
Added 550 response.
svn path=/trunk/; revision=1057
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 20 |
1 files changed, 8 insertions, 12 deletions
@@ -808,23 +808,19 @@ char *realname; /* real name of host */ { int smtperr = atoi(smtp_response); - if (smtperr >= 400 && smtperr != 571 || smtperr != 501) - error(0, -1, "SMTP error: %s", smtp_response); - /* - * There's one problem with this flow of control; - * there's no way to avoid reading the whole message - * off the server, even if the MAIL FROM response - * tells us that it's just to be discarded. We could - * fix this under IMAP by reading headers first, then - * trying to issue the MAIL FROM, and *then* reading - * the body...but POP3 can't do this. + * Suppress error message only if the response specifically + * means `excluded for policy reasons'. We *should* see + * an error when the return code is less specific. */ + if (smtperr >= 400 && smtperr != 571) + error(0, -1, "SMTP error: %s", smtp_response); switch (smtperr) { - case 571: /* unsolicited email refused */ - case 501: /* exim's antispam response (temporary) */ + case 571: /* sendmail's "unsolicited email refused" */ + case 501: /* exim's old antispam response */ + case 550: /* exim's new antispam response (temporary) */ /* * SMTP listener explicitly refuses to deliver * mail coming from this address, probably due |