On Thu, 2013-03-28, Dan Jidanni Jacobson wrote:
> $ echo Hi Bob | mutt -s Whoopie -a file1.txt file2.txt --
b...@example.com
> will get you file2.txt put on the To: line, despite the man page says.
-a file [...]
Attach a file to your message using MIME. When attaching
single or multiple files, separating filenames and recipient
addresses with "--" is mandatory, e.g. mutt -a image.jpg --
addr1 or mutt -a img.jpg *.png -- addr1 addr2. The -a option
must be placed at the end of command line options.
Yes, they seem to be saying that -a doesn't work like a normal flag-
with-an-argument but rather introduces a section of argv which is
interpreted as attachment names. Easier to use (e.g. with wildcards),
but a bit harder to implement. And based on what you wrote they
/didn't/.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/
snipabacken.se> O o .