diff options
Diffstat (limited to 'sink.c')
-rw-r--r-- | sink.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); } |