changeset 630:d132d689873a

Fixed digest multipart boundary (Thanks to Ulrich Mueller)
author mortenp
date Thu, 15 Mar 2007 09:19:38 +1100
parents 61e93e5c3ecf
children 44021d2ebe92
files ChangeLog src/send_digest.c
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 04 04:26:00 2007 +1100
+++ b/ChangeLog	Thu Mar 15 09:19:38 2007 +1100
@@ -1,3 +1,4 @@
+ o Fixed digest multipart boundary (Thanks to Ulrich Mueller)
  o Added support for mail size limit (Christoph Wilke)
  o Log the result of access rules in the operation log (Henne Vogelsang)
  o Ignore empty lines in control files
--- a/src/send_digest.c	Sun Mar 04 04:26:00 2007 +1100
+++ b/src/send_digest.c	Thu Mar 15 09:19:38 2007 +1100
@@ -313,7 +313,7 @@
 
 	if ((txtfd > 0) && !statctrl(listdir, "nodigesttext")) {
 
-		tmp = concatstr(3, "--", boundary,
+		tmp = concatstr(3, "\n--", boundary,
 				"\nContent-Type: text/plain; charset=UTF-8"
 				"\n\n");
 		if (writen(fd, tmp, strlen(tmp)) == -1) {
@@ -386,7 +386,7 @@
 		if (archivefd < 0)
 			continue;
 		
-		tmp = concatstr(7, "--", boundary,
+		tmp = concatstr(7, "\n--", boundary,
 				"\nContent-Type: message/rfc822"
 				"\nContent-Disposition: inline; filename=\"",
 					listname, "_", buf, ".eml\""
@@ -422,7 +422,7 @@
 		close(archivefd);
 	}
 
-	tmp = concatstr(3, "--", boundary, "--\n");
+	tmp = concatstr(3, "\n--", boundary, "--\n");
 	if (writen(fd, tmp, strlen(tmp)) == -1) {
 		log_error(LOG_ARGS, "Could not write digest end to '%s'",
 				queuename);