Bug#301906: Re: Bug#301906: exim4: Mail messages sent to local addresses are lost

Vincent Lefevre Vincent Lefevre <vincent@vinc17.org>, 301906-maintonly@bugs.debian.org
Sat, 2 Apr 2005 13:13:11 +0200


On 2005-04-02 11:06:07 +0200, Marc Haber wrote:
> If you would be willing to step back from using m4 and do it in a
> shellscript, /var/lib/dpkg/info/exim4-config.config and
> /var/lib/dpkg/info/exim4-config.postist could give some code examples.

A good shell script would probably be more robust but there is a higher
risk of bugs (e.g. due to locale-sensitive commands, which have led to
many bugs in Debian). And this has no effect on the heart of the problem.
For instance, variable names such as dc_smarthost could change, ditto for
the value of dc_eximconfig_configtype. In such a case, the shell script
could also lead to an incorrect config file.

IMHO, the only good solution would be that the user (via his netenv
config scripts for instance) detects that the config file had changed,
in which case only a manual fix is safe. If the file had not changed,
m4 can still be used safely.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA