1 Feb 2007 15:57
Patch to ignore empty lines in files under /control/
Since empty lines in some of the files in the control dir can result in
suprising behaviour I have made a small patch that makes mlmmj ignore
those.
As far as I can see empty lines doesn't make any sense in any of the
existing tunables, so it should be safe to ignore them.
Unless there are any protests I will probably commit this change
sometime tomorrow.
Index: src/ctrlvalues.c
===================================================================
RCS file: /home/mmj/MMJCVS/mlmmj/src/ctrlvalues.c,v
retrieving revision 1.2
diff -u -w -r1.2 ctrlvalues.c
--- src/ctrlvalues.c 19 Jun 2004 03:44:47 -0000 1.2
+++ src/ctrlvalues.c 1 Feb 2007 10:52:35 -0000
<at> <at> -52,6 +52,8 <at> <at>
ret->strs = NULL;
while((value = mygetline(ctrlfd)) != NULL) {
chomp(value);
+ if (*value == '\0')
+ continue;
ret->count++;
ret->strs = (char **) myrealloc(ret->strs, sizeof(char *) *
(ret->count + 1));
--
--
Christian Laursen
(Continue reading)
>
> well, i just added two unlinks and it seems to work "so far", but:
> the bounce mail generated by mlmmj isn't parsed properly. The reason
> is, that your patch uses "new" macros which are not implemented
> anyway.
> New is: $oldsubject$, $maxmailsize$
I fixed now (at last) the missing macro ($maxmailsize$).
Patch attached.
Ciao
Chris
ps. Sorry for the long delay, but all the time I thought I
had some spare time, I had to do some other work first...
RSS Feed