[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aliases format makedb, extended lines
> Hi,
>
> There is a little problem with it, makedb -a would not
> handle extended lines properly... Either it is still too early
> or it has to be like this:
So you think that "\n\t" is too much ? Perhaps if you
would remove the "\n" from that string ?
Consider lines like:
alias: foo1
foo2
Now as these are catenated, what will the result be ?
What results work ?
alias: foo1 foo2
alias: foo1 , foo2
I essentially preserved all of the white-spaces, including
the newline, and in my tests it worked. (At aliases, that is)
Are you considering using it somewhere else ?
Perhaps some other (new) option for the new format would
be in place ?
/Matti Aarnio
> *** makedb.c.orig Thu Apr 2 10:50:03 1998
> --- makedb.c Thu Apr 2 10:49:47 1998
> ***************
> *** 499,506 ****
> slen = strlen(s0);
> tlen = strlen(t) + 2;
> s0 = erealloc(s0, slen + tlen + 4);
> ! memcpy(s0 + slen + 0, " ,\n\t", 4);
> ! memcpy(s0 + slen + 4, t, tlen-1);
> continue;
> }
> if (*t == '\t' || *t == ' ') {
> --- 499,505 ----
> slen = strlen(s0);
> tlen = strlen(t) + 2;
> s0 = erealloc(s0, slen + tlen + 4);
> ! memcpy(s0 + slen, t, tlen-1);
> continue;
> }
> if (*t == '\t' || *t == ' ') {
>
> alexis
> --
> Better to be down here wishing you were up there
> than up there wishing you were down here...
>