changeset 286:141f6c21e09a

0.8.2 stuff
author mmj
date Sat, 03 Jul 2004 22:29:25 +1000
parents 081ba983e6f1
children 62fbbf742b3c
files ChangeLog README THANKS src/find_email_adr.c src/mlmmj-process.c
diffstat 5 files changed, 23 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jul 03 16:09:55 2004 +1000
+++ b/ChangeLog	Sat Jul 03 22:29:25 2004 +1000
@@ -1,3 +1,7 @@
+0.8.2
+ o Make sure we don't cut of the first char of an emailaddress
+ o Fix header value copying (thanks Anders Johansson)
+ o Don't segfault if there's no email address in the To: header
  o Clean up the subconf and unsubconf directories for stale requests as well
 0.8.1.1
  o Fix bug with prepstdreply not opening correct file. Thanks Christian Laursen
--- a/README	Sat Jul 03 16:09:55 2004 +1000
+++ b/README	Sat Jul 03 22:29:25 2004 +1000
@@ -1,4 +1,4 @@
-README mlmmj-0.8.1					Jun 25th 2004
+README mlmmj-0.8.2					Jul 3rd 2004
 
 This is an attempt at implementing a mailing list manager with the same
 functionality as the brilliant ezmlm, but with a decent license and mail server
@@ -51,12 +51,10 @@
     /var/spool/mlmmj/mlmmj-test/subscribers.d
     /var/spool/mlmmj/mlmmj-test/requeue
 
-    And creates files similar to the ones in the listtexts/ directory of the
-    source distribution in /var/spool/mlmmj/text/.
-
-    NOTE: The mailinglist directory have to be owned by the user the mailserver
-    writes as. On some Postfix installations Postfix is run by the user postfix,
-    but still writes files as nobody:nogroup or nobody:nobody
+    NOTE: The mailinglist directory (/var/spool/mlmmj/mlmmj-test in our
+    example) have to be owned by the user the mailserver writes as. On some
+    Postfix installations Postfix is run by the user postfix, but still writes
+    files as nobody:nogroup or nobody:nobody
 
  3) Make the changes to your mailserver aliases that came as output from
     mlmmj-make-ml.sh. Following the example above they will look like this:
@@ -70,8 +68,11 @@
 
     "0 */2 * * *  /usr/bin/mlmmj-maintd -F -L /var/spool/mlmmj/mlmmj-test"
 
-    mlmmj-maintd will become the user owning the listdir, and log it's
-    last maintenance run to listdir/mlmmj-maintd.lastrun.log.
+    It should be started as root, as mlmmj-maintd will become the user owning
+    the listdir (/var/spool/mlmmj/mlmmj-test), and log it's last maintenance
+    run to listdir/mlmmj-maintd.lastrun.log.
+
+    You need one entry for each list or a wrapper script added once in crontab.
 
 That's it! You might want to go through the next steps too.
 
--- a/THANKS	Sat Jul 03 16:09:55 2004 +1000
+++ b/THANKS	Sat Jul 03 22:29:25 2004 +1000
@@ -4,3 +4,4 @@
  · Hendrik 'henne' Vogelsang <hvogel@hennevogel.de> for mlmmj-make-ml.sh
  · Søren Boll Overgaard <boll@debian.org> for testing and feedback
  · Christian Laursen <xi@borderworlds.dk> for the FreeBSD port
+ · Anders Johansson <andjoh@rydsbo.net> for bugfixes and feedback
--- a/src/find_email_adr.c	Sat Jul 03 16:09:55 2004 +1000
+++ b/src/find_email_adr.c	Sat Jul 03 22:29:25 2004 +1000
@@ -41,9 +41,9 @@
 	while(index_atsign) {
 		c = index_atsign;
 		retstruct->emailcount++;
-		while(*c != '<' && *c != ' ' && *c != ',' && *c != ';'
-				&& *c != '(' && *c != '[' && *c >= 32
-				&& *c != '{' && c != tempstr) {
+		while(c >= tempstr && *c != '<' && *c != ' ' && *c != ','
+				&& *c != ';' && *c != '(' && *c != '[' &&
+				*c >= 32 && *c != '{') {
 			c--;
 		}
 		first_char = ++c;
@@ -64,7 +64,7 @@
 		snprintf(retstruct->emaillist[retstruct->emailcount-1], len,
 			 "%s", first_char);
 #if 0
-		printf("find_email_adr, [%s]\n",
+		log_error(LOG_ARGS, "find_email_adr POST, [%s]\n",
 				retstruct->emaillist[retstruct->emailcount-1]);
 #endif
 		*index_atsign = 'A'; /* Clear it so we don't find it again */
--- a/src/mlmmj-process.c	Sat Jul 03 16:09:55 2004 +1000
+++ b/src/mlmmj-process.c	Sat Jul 03 22:29:25 2004 +1000
@@ -489,7 +489,10 @@
 		}
 	}
 
+	if(toemails.emaillist)
 	recipdelim = strchr(toemails.emaillist[0], RECIPDELIM);
+	else
+		recipdelim = NULL;
 
 	if(recipdelim) {
 		owner = concatstr(2, listdir, "control/owner");