aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-19 19:43:59 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-19 19:43:59 +0000
commit2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d (patch)
tree144a2c60d05e867f20a910defd19ca854dd8c83a /sink.c
parent417ed3307c628d8c8daad2da6a594f1fbf6015a3 (diff)
downloadfetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.tar.gz
fetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.tar.bz2
fetchmail-2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d.zip
Minor corrections.
svn path=/trunk/; revision=2286
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index e98630e3..c7e476b6 100644
--- a/sink.c
+++ b/sink.c
@@ -288,7 +288,7 @@ static int send_bouncemail(struct msgblk *msg,
SockPrintf(sock, "From: FETCHMAIL-DAEMON@%s\r\n", fetchmailhost);
SockPrintf(sock, "To: %s\n", msg->return_path);
SockPrintf(sock, "MIME-Version: 1.0\r\n");
- SockPrintf(sock, "Content-Type: multipart/report; report-type=delivery-status boundary=\"%s\"\r\n", boundary);
+ SockPrintf(sock, "Content-Type: multipart/report; report-type=delivery-status; boundary=\"%s\"\r\n", boundary);
SockPrintf(sock, "\r\n");
SockPrintf(sock, "Content-Transfer-Encoding: 7bit\r\n");
SockPrintf(sock, "\r\n");
@@ -299,6 +299,7 @@ static int send_bouncemail(struct msgblk *msg,
SockPrintf(sock, "\r\n");
SockWrite(sock, message, strlen(message));
SockPrintf(sock, "\r\n");
+ SockPrintf(sock, "\r\n");
if (nerrors)
{
@@ -307,7 +308,7 @@ static int send_bouncemail(struct msgblk *msg,
SockPrintf(sock,"Content-Type: message/delivery-status\r\n");
SockPrintf(sock, "\r\n");
for (i = 0; i < nerrors; i++)
- SockPrintf(sock, errors[i]);
+ SockPrintf(sock, "%s\r\n", errors[i]);
SockPrintf(sock, "\r\n");
}