aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-29 23:20:24 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-29 23:20:24 +0000
commitb5e4dc5abc12941cb0695e4d69d5ac2a2f21406f (patch)
treeb7c796c1468a17c2da2f1fb4284601145cd9a356 /sink.c
parent9e818012346fbee36ba481866b3d0005ac6816ea (diff)
downloadfetchmail-b5e4dc5abc12941cb0695e4d69d5ac2a2f21406f.tar.gz
fetchmail-b5e4dc5abc12941cb0695e4d69d5ac2a2f21406f.tar.bz2
fetchmail-b5e4dc5abc12941cb0695e4d69d5ac2a2f21406f.zip
-Wall changes.
svn path=/trunk/; revision=2626
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index 52efa37a..6dc91b58 100644
--- a/sink.c
+++ b/sink.c
@@ -43,7 +43,7 @@
#endif
/* makes the open_sink()/close_sink() pair non-reentrant */
-static lmtp_responses;
+static int lmtp_responses;
static int smtp_open(struct query *ctl)
/* try to open a socket to the appropriate SMTP server for this query */
@@ -204,6 +204,7 @@ int stuffline(struct query *ctl, char *buf)
* decorated any . lines it sends back up.
*/
if (*buf == '.')
+ {
if (ctl->server.base_protocol->delimited) /* server has already byte-stuffed */
{
if (ctl->mda)
@@ -218,6 +219,7 @@ int stuffline(struct query *ctl, char *buf)
else
/* leave it alone */;
}
+ }
/* we may need to strip carriage returns */
if (ctl->stripcr)
@@ -896,6 +898,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
* to people who got it the first time.
*/
if (ctl->listener == LMTP_MODE)
+ {
if (lmtp_responses == 0)
{
SMTP_ok(ctl->smtp_socket);
@@ -958,6 +961,7 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
"LSMTP partial delivery failure.\r\n",
errors, responses));
}
+ }
}
return(TRUE);