changeset 545:ecac9738ba4f

Only add To: header when sending out actual list mail
author xi
date Thu, 22 Jun 2006 07:50:48 +1000
parents 869a202ffb3b
children 82f9cc69709e
files ChangeLog src/mlmmj-send.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 25 22:30:11 2006 +1000
+++ b/ChangeLog	Thu Jun 22 07:50:48 2006 +1000
@@ -1,3 +1,4 @@
+ o Only add To: header when sending out actual list mail
  o Close stdin, stdout and stderr in the child of mlmmj-receive after
    forking. This is neccesary on FreeBSD.
  o No need to check for subscribers in 0-sized files
--- a/src/mlmmj-send.c	Tue Apr 25 22:30:11 2006 +1000
+++ b/src/mlmmj-send.c	Thu Jun 22 07:50:48 2006 +1000
@@ -823,7 +823,6 @@
 		exit(EXIT_FAILURE);
 	}
 
-	addtohdr = statctrl(listdir, "addtohdr");
 	memmailsizestr = ctrlvalue(listdir, "memorymailsize");
 	ctrlarchive = statctrl(listdir, "noarchive");
 	if(memmailsizestr) {
@@ -886,6 +885,7 @@
 		}
 		break;
 	case '3':
+		addtohdr = statctrl(listdir, "addtohdr");
 	case '4': /* sending mails to subfile */
 		if((subfd = open(subfilename, O_RDONLY)) < 0) {
 			log_error(LOG_ARGS, "Could not open '%s':",
@@ -904,6 +904,7 @@
 						archivefilename);
 		break;
 	default: /* normal list mail -- now handled when forking */
+		addtohdr = statctrl(listdir, "addtohdr");
 		break;
 	}