mailpost woes

Julien ÉLIE julien at trigofacile.com
Fri Apr 25 19:59:12 UTC 2008


Hi,

>> 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: $!") ;

I obtain:

21:50 news at trigofacile ~% cat mailtest | mailpost -b /nowhere local.test
can't open /nowhere/mailpost-msgid.lock: Aucun fichier ou répertoire de ce type

and a mail is sent.


Is it normal that "||" and "or" do not have the same behaviour?
Is there something wrong with open()?

-- 
Julien ÉLIE

« Bibite, fratres, bibite, ne diauolus uos otiosos inueniat. »



More information about the inn-workers mailing list