aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 7a8bf2d9..80a5d3f0 100644
--- a/driver.c
+++ b/driver.c
@@ -435,6 +435,9 @@ static int smtp_open(struct query *ctl)
}
}
+ if (outlevel >= O_VERBOSE && ctl->smtp_socket != -1)
+ error(0, 0, "forwarding to SMTP port on %s", ctl->smtphost);
+
return(ctl->smtp_socket);
}
@@ -526,7 +529,7 @@ int num; /* index of message */
headers = received_for = NULL;
from_offs = ctt_offs = env_offs = -1;
oldlen = 0;
- for (remaining = len; remaining > 0; remaining -= linelen)
+ for (remaining = len; remaining > 0 || protocol->delimited; remaining -= linelen)
{
char *line;