Re: mutt execution by daemon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Joseph L. Casale wrote:
>> You could specify the muttrc file using the -F switch, maybe that will
>> solve yer problem? Or are you saying that is what you're doing but it
>> bombs? How about telling us the command/script and the error output?
>> luck,
>> Dave
> 
> Hi,
> I am calling mutt like so:
> mutt -F /path/muttrc -a /path/file -s "text here" dest@xxxxxxxxxxx < /dev/null
> 
> But as the user does not have a mailbox, it fails. I can't actually see what's
> going on obviously but as I tail the maillog and nothing even wakes it I am just
> making a WASG that I am pretty sure is right:) As there is and never was local mail
> delivery, root doesn't even have a mailbox so if I run it, I see it prompts for the
> mb...
> 

You could probably strace the mutt run and wade through the output to see what 
it is looking for.  A quick-fix might be to touch /var/spool/mail/user if it 
wants a mailbox there, or export HOME=/some/readable/path if it is looking for 
$HOME/.muttrc or a maildir mailbox.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux