aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-30 05:04:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-30 05:04:17 +0000
commit366dd1cb3c250a41574829f5f8379dab08824408 (patch)
tree98cf91b0b4d4064323bc2c1ffdbc096d2a0d7b53 /sink.c
parentc67156eed2a24e1f2aa16a2f3bf34ba0a21e9519 (diff)
downloadfetchmail-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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index c7e476b6..e6fcfcde 100644
--- a/sink.c
+++ b/sink.c
@@ -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);
+ }
}
/*