mailpost exits with status 0 on error
Julien ÉLIE
julien at trigofacile.com
Thu Feb 26 19:27:44 UTC 2009
Hi,
I do not know the reason mailpost has to exit with status 0 upon an error.
Have you ever heard about that?
An old problem which is now fixed?
[The code has been the same since its inclusion in INN, in 1998.]
I suggest we exit with an error code (in INN 2.5.0, not 2.4.6).
Any complaints?
Julien
----- Message d'origine -----
De : "Jon Bendtsen" <noone at example.com>
Groupes de discussion : news.software.nntp
Envoyé : jeudi 26 février 2009 09:21
Objet : Re: posting oooold email archive to my inn2 server
> Julien ÉLIE wrote:
>> Hi Jon,
>>
>>> ps: there is an error in the mailpost script because it does not
>>> exit with an exitcode different from 0 when it hits the above error
>>> message.
>>
>> The problem is that I read in mailpost, at the end of mailArtAndDie():
>>
>> exit (0) ; # Using a non-zero exit may cause problems.
>
> Proper error handling is importent. Errors should propergate until
> they can be dealt with.
More information about the inn-workers
mailing list