nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: David Levine
Subject: Re: [Nmh-workers] I did something wrong with replcomps
Date: Sun, 18 Dec 2016 12:52:04 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]