From 366dd1cb3c250a41574829f5f8379dab08824408 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 30 Dec 1998 05:04:17 +0000 Subject: Full SMTP response check om EOM. svn path=/trunk/; revision=2294 --- sink.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sink.c') 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); + } } /* -- cgit v1.2.3