On 01Dec2012 08:14, Jeffery Small <[email protected]> wrote:
| Will Yardley <[email protected]> writes:
| >You shouldn't need to do any special encoding, and mutt -a should do
| >what you want.
[...]
| Will:
| Thanks so much for your quick reply.  You are exactly right, the problem was
| that the -a <file> argument was before the address argument and it was taking
| the address as a file to be attached. [...]
| I was further confused because it turns out that there is also an older 1.4
| version of mutt on this machine, and when I read the manual page, I was 
getting
| the old documentation.

I tend to go:

  mutt -?

or likewise with other commands. With a well implemented command this
elicits a decent usage message, and you at least know it came from the
right command.

| [...]  When I corrected things and got to the proper manpage, it 
| reads:
| 
| mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s  subj]
|      [-b addr] [-c addr] [-a file [...] --] addr|mailto_url [...]
| 
| which shows the support for the multiple arguments to the -a option, which
| can be terminated with "--" which also works in my tests.

Yes, this change was made because the common command usage wish is:

  mutt -a *.jpg

and the -- file list termination is there to allow reliable separation
of this from the addresses (circumventing your original problem).

Cheers,
-- 
Cameron Simpson <[email protected]>

Reply via email to