* Eric Smith [EMAIL PROTECTED] [2002-04-22 14:23]:
I want to send (say from a script),
the same way i may send like this:
mutt whoever -ssubject/etc/passwd
But with the -H and a draft that contains
all the header info and a complete body,
it always prompts me.
Can I avoid the prompt?
The file with -H file must contain a header - and a header *only*.
No body. that's what -i incfile and stdin are for.
Besides, -s subject must go *before* the addresses.
However, as you specify a header file all header info
such as the subject line and the addresses lines are taken
from that file; further data from the command line is ignored.
If you want to *include* data for
the *body* then use option -i file.
Example:
$ cat mutt.header
From: Sven Guckes [EMAIL PROTECTED]
Subject: automized sending with mutt
To: guckes-mutt-test
$ mutt -i incfile the subject [EMAIL PROTECTED] [EMAIL PROTECTED] /etc/fruit
Note that both the subject and the addresses from the command line are ignored.
however, both incfile and /etc/fruit are added to the *body* -
with incfile first and /etc/fruit after that.
you could use /dev/null instead of /etc/fruit, of course.
Mutt's manual is missing a description for this -
but then it's just a manual which gets updated
only with patches to the code (or so it seems).
but maybe I'm missing the guideline for additions to the
manual (which probabaly should be in the manual, too ;-).
Sven