mailpost woes

Julien ÉLIE julien at
Fri Apr 25 20:26:20 UTC 2008


>>> That's great, but why doesn't mailpost give an error message?  The mailpost
>>> command was still succeeding - still returning 0 - and there wasn't any
>>> information being logged anywhere to indicate that the problem was that
>>> mailpost either couldn't find the pathtmp directory or couldn't write to it.
> There is:
>    open LOCKFILE, "<$lockfile" ||
>        open LOCKFILE, ">$lockfile" ||
>        mailArtAndDie ("can't open $lockfile: $!") ;
> and if open() does not work, nothing happens...
> However, if I put:
>    open LOCKFILE, "<$lockfile" or
>        open LOCKFILE, ">$lockfile" or
>        mailArtAndDie ("can't open $lockfile: $!") ;

Oh, it should be written with parenthesis:

    open (LOCKFILE, "<$lockfile") ||
        open (LOCKFILE, ">$lockfile") ||
        mailArtAndDie ("can't open $lockfile: $!") ;

It is a long-standing bug, then.

Nick, I think everything now works fine for you (-b in documentation
and error message if the lockfile cannot be used).

Julien ÉLIE

« La vie n'est qu'un tissu de coups de poignard qu'il faut savoir boire goutte à goutte. »

More information about the inn-workers mailing list