nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] I did something wrong with replcomps

2016-12-18 11:52:21
I wrote:

1) Support -fcc (and -to and -cc) without having a corresponding
component in the components file.  Adding that support won't
introduce a backward incompatibility.  This is entirely an internal
implementation relic.

Maybe I wasn't clear with this:

That kind of dependency should be removed.  Is there any reason not to
add a new component if one (fcc, in this case) isn't found?

I meant add internally, e.g.,

    cptr = fmt_findcomp ("fcc");
    if (! cptr) {
        fmt_addcompentry ("fcc");
        cptr = fmt_findcomp ("fcc");
    }

    cptr->c_text = mh_xstrdup(fcc);

The current code does nothing if the first fmt_findcomp ("fcc")
returns NULL.

David

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>