changeset 185:f92879537344

Prep for 0.6.0 and small debug info removal etc.
author mmj
date Mon, 07 Jun 2004 07:57:40 +1000
parents 86d7d42fe996
children 304a883f5f40
files ChangeLog README TODO UPGRADE VERSION src/mlmmj-send.c
diffstat 6 files changed, 22 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jun 07 07:08:09 2004 +1000
+++ b/ChangeLog	Mon Jun 07 07:57:40 2004 +1000
@@ -1,3 +1,5 @@
+0.6.0
+ o Add several unlinks. No need to litter queue/ with useless files
  o Don't use moderation/queue for outgoing, just use queue/
  o Christoph Thiel pointed out that listaddress and moderators belong in
    control/ so move them there
--- a/README	Mon Jun 07 07:08:09 2004 +1000
+++ b/README	Mon Jun 07 07:57:40 2004 +1000
@@ -1,4 +1,4 @@
-README mlmmj-0.5.2					May 29th 2004
+README mlmmj-0.6.0					Jun 6th 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
@@ -59,9 +59,13 @@
 
    NOTE: Don't forget newaliases.
 
+4) Start mlmmj-maintd (remember full path when starting it!) or add it to
+   crontab with -F switch. Note that mlmmj-maintd is still work in progress,
+   but except bouncehandling everything should be there.
+
 That's it! You might want to go through the next steps too.
 
-4) Subscribe some people
+5) Subscribe some people
 
    mlmmj-sub -L /var/spool/mlmmj/mlmmj-test/ -a joe@domain.tld
 
@@ -71,30 +75,30 @@
    directory and files in there, if you don't perform all list actions as the
    user that writes mail.
 
-5) If you want custom headers like X-Mailinglist, Reply-To: etc. just add a
+6) If you want custom headers like X-Mailinglist, Reply-To: etc. just add a
    file called 'customheaders' in the list control/ directory like this:
    $ cat /var/spool/mlmmj/mlmmj-test/control/customheaders
    X-Mailinglist: mlmmj-test
    Reply-To: mlmmj-test@domain.tld
 
-6) If you want every mail to have something like:
+7) If you want every mail to have something like:
    -- 
    To unsubscribe send a mail to coollist+unsubscribe@lists.domain.net
 
    Just add what you want to a file named "footer" in the same dir as
    "customheader" (listdir/control/).
 
-7) For having a moderated list, simply create a file called 'moderated' in the
+8) For having a moderated list, simply create a file called 'moderated' in the
    control/ directory. Moderators are added to a file called 'moderators' in
    the listdir, just like subscribers are in the subscribers file.
 
-8) Have a look at the file TUNABLES for runtime configurable things.
+9) Have a look at the file TUNABLES for runtime configurable things.
 
 Tunables in include/mlmmj.h:
-If you want to use something else than localhost for your maildelivery you have
+ · If you want to use something else than localhost for your maildelivery you have
 to change RELAYHOST.
-If you want to spawn more than 3 smtp connections to your relayhost, change
-MAX_CONNECTIONS to the desired value.
+ · There's some time intervals for how mlmmj-maintd operates. I've choosen
+   non-strict defaults, so depending on your BOFH rate you might want to tweak.
 
 Have a fun!
 
--- a/TODO	Mon Jun 07 07:08:09 2004 +1000
+++ b/TODO	Mon Jun 07 07:57:40 2004 +1000
@@ -7,4 +7,4 @@
  o mlmmj-maintenance (in progress)
 
 An ever ongoing TODO is we need someone to run it all through valgrind or
-similar and plug all memory leaks etc.
+similar and plug all memory and fd leaks etc.
--- a/UPGRADE	Mon Jun 07 07:08:09 2004 +1000
+++ b/UPGRADE	Mon Jun 07 07:57:40 2004 +1000
@@ -10,6 +10,8 @@
 
   · moderation/queue
 
+ Start mlmmj-maintd
+
 This applies to everyone using mlmmj > 0.5.1:
 ---------------------------------------------
 
--- a/VERSION	Mon Jun 07 07:08:09 2004 +1000
+++ b/VERSION	Mon Jun 07 07:57:40 2004 +1000
@@ -1,1 +1,1 @@
-0.6.0-RC1
+0.6.0
--- a/src/mlmmj-send.c	Mon Jun 07 07:08:09 2004 +1000
+++ b/src/mlmmj-send.c	Mon Jun 07 07:57:40 2004 +1000
@@ -303,7 +303,7 @@
 	for(next = cur = start; next < start + st.st_size; next++) {
 		if(*next == '\n' || next == start + st.st_size - 1) {
 			len = next - cur;
-			if(next == start + st.st_size - 1)
+			if(next == start + st.st_size - 1 && *next != '\n')
 				len++;
 			addr = malloc(len + 1);
 			strncpy(addr, cur, len);
@@ -349,8 +349,7 @@
 				do {
 					/* Dirty hack to add newline. */
 					len = strlen(addr);
-					addr[len] = '\n';
-					if(writen(addrfd, addr, len+1) < 0)
+					if(writen(addrfd, addr, len) < 0)
 						log_error(LOG_ARGS,
 							"Could not add [%s] "
 							"to requeue address "