In 2002 Martin Michlmayr wrote:
"I wanted to send some photos I took yesterday to a couple of friends
and it would be nice to simply do "a" and then say *.jpg.  Why is that
not possible? Alternatively, it would be nice if you could tag files
in the file browser and then attach the tagged ones."

On http://michael.orlitzky.com/articles/multiple_attachments_in_mutt.php
Michael Orlitzky describes an undocumented way to attach several files
"by mashing t real seriously".

As far as I can see, sending multiple attachments described by a pattern
is still impossible in

% mutt --version
mutt: invalid option -- '-'
Mutt 1.5.20 (2009-06-14)

For example:

Start mutt on my local machine. The mailhost is remote.
I wish to attach all files in the current directory on the local machine.
(Not from the command line, but while sending mail.)

Command: a
Mutt replies: Attach file ('?' for list):
Command: *
Mutt replies: Unable to attach *!
[ok, so strings like * or .* are not viewed as patterns but taken literally]

Try again.

Command: a
Mutt replies: Attach file ('?' for list):
Command: ?
Mutt contacts the remote host to look at various remote folders. Ach.
[This feels like a mutt bug.]

Try again.

Command: a
Mutt replies: Attach file ('?' for list):
Command: TAB
Mutt replies with a directory listing of the current directory.
I would like to select all files, and have so far not found a better
method than hitting t as many times as there are files.

How does one tag all files? How does one tag all files fitting a pattern?
Try ~: "Key is not bound.  Press '?' for help."
Try /: "Search for:" Try ~A. "Not found."
 [more generally, / searches for the next file with a suitable name,
  not for all such files]
Try T: This is bound to toggle-subscribed, not to tag-pattern.

Andries

Reply via email to