diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-12-30 05:04:17 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-12-30 05:04:17 +0000 |
commit | 366dd1cb3c250a41574829f5f8379dab08824408 (patch) | |
tree | 98cf91b0b4d4064323bc2c1ffdbc096d2a0d7b53 /sink.c | |
parent | c67156eed2a24e1f2aa16a2f3bf34ba0a21e9519 (diff) | |
download | fetchmail-366dd1cb3c250a41574829f5f8379dab08824408.tar.gz fetchmail-366dd1cb3c250a41574829f5f8379dab08824408.tar.bz2 fetchmail-366dd1cb3c250a41574829f5f8379dab08824408.zip |
Full SMTP response check om EOM.
svn path=/trunk/; revision=2294
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -826,8 +826,13 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward) /* write message terminator */ if (SMTP_eom(ctl->smtp_socket) != SM_OK) { - error(0, -1, _("SMTP listener refused delivery")); - return(FALSE); + if (handle_smtp_error(ctl, msg) != PS_REFUSED) + return(FALSE); + else + { + error(0, -1, _("SMTP listener refused delivery")); + return(TRUE); + } } /* |