[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] can't get mail to stop prompting me
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] can't get mail to stop prompting me |
Date: |
Mon, 18 Jan 2010 09:50:12 +0200 |
Mark Gilmore <address@hidden> ha escrit:
> hi,
> i am trying to send an email:
> mail -s test -m test address@hidden
> but the pgm keeps prompting me and will not respond to a ctrl-d
> or any other key (just keeps inputing the keys).
> any idea ?
Mail does not prompt user if its stdin is not connected to a
terminal, as in:
mail -s test -m test address@hidden < input
and
cat input | mail -s test -m test address@hidden
> perhaps there are multiple versions of "mail" ???
There is always a system version of mail, unless you explicitly
override it when installing Mailutils. Some system may have several
mail binaries (e.g. in /bin and in /usr/bin).
To verify that what you are using is a Mailutils implementation of mail,
run `mail --version' and check its output. It must show:
mail (GNU Mailutils 2.x)
> is there a verbose mode - any way of seeing what's happening ?
Add 'set verbose' to the mailrc, or add
--exec='set verbose'
to the mail's command line.
> any way to send an email without user interaction ?
Make sure mail's standard input is not attached to a terminal.
> this warns about a "null message body"
To suppress this message, set nonullbodymsg mail variable.
> (though i thought "-m" denoted it),
There is no such option in GNU mail.
Regards,
Sergey