Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to do batch mode?

6 views
Skip to first unread message

Jerry Heyman

unread,
Nov 21, 2009, 9:56:45 PM11/21/09
to

I currently use nmh as my email client of choice - and have been for many
years. As long as I use nmh, I get to route my email through my ISP
instead of direct connect via Sendmail.

I also run linux-counter shell script, which wants to email statistics every
month. Unfortunately, it uses /bin/mail, which does route through Sendmail,
and as such my connection to the recipient is rejected on the receiving end
(dynamic IP address).

Question - having read through Jerry Peek's book, I'm still confused on how
to create a file that has a complete email message through nmh via a cron
job. It is apparently possible, but I've yet to master the necessary
options. I would have thought something like:

$ comp -use -file /tmp/filename -noedit -noprompt

would have worked. But Jerry's book mentions creating a new push command
that is linked to send, so that one can use -whatnowproc push... So far
I've been unsuccessful in following how to do that.

jerry
--
// Jerry Heyman | "It's not a 'right' if someone else
// Amiga Forever :-) | has to pay for it" - Ayn Rand
\\ // heymanj at acm dot org |
\X/ http://www.hobbeshollow.com

Alan J Rosenthal

unread,
Nov 22, 2009, 11:27:04 AM11/22/09
to
I think the easiest way to start a new mail message from a file
noninteractively is
cp file `mhpath +drafts new`

and the easiest way to send it is
send drafts/whatever

e.g.

x=`mhpath +drafts new`
cp file $x
send drafts/`basename $x`

Jerry Heyman

unread,
Nov 22, 2009, 1:30:10 PM11/22/09
to
Alan J Rosenthal wrote:

Alan,

This is what I was looking for - appears to be exactly what I wanted.

Thanks!

0 new messages