[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] problems with slocal
From: |
Peter Maydell |
Subject: |
Re: [Nmh-workers] problems with slocal |
Date: |
Mon, 27 Jul 2009 22:01:20 +0100 |
Jerrad Pierce wrote:
>Strike that, reverse it. As long as -user *is not supplied*, presumably
>due to these lines of localmail:
>
> 443 /* last resort - deliver to standard mail spool */
> 444 #ifdef SLOCAL_MBOX
> 445 return usr_file (fd, mbox, MBOX_FORMAT);
> 446 #else
> 447 return usr_file (fd, mbox, MMDF_FORMAT);
> 448 #endif
> 449 }
>
>Which is all fine and good except that
>>Problem is, slocal then decides to exit with status 1 :-/
>Presumably these lines aren't doing quite what they ought?
>
> 415 done (status != -1 ? RCV_MOK : RCV_MBX);
> 416 return 1;
> 417 }
Those are correct -- exit 1 if status is -1, otherwise 0 (although
using RCV_MBX is being wilfully misleading).
You might try telling slocal to be verbose, in which case it might
say what was going wrong, or alternatively run under a debugger and
see why status is being set to -1...
-- PMM