<<< Date Index >>>     <<< Thread Index >>>

Re: regression: attaching files from command line fails



> I think the point of the current behavior is to be able to do
> things like this:
> 
>     mutt -a *.jpg -- foo@xxxxxxx

Faced with this need in the past, I've gone with an enclosure notation:

        mutt -a { *.jpg } foo@xxxxxxxxxxx

If you're using getopt, you still need to require -a to be the last
option, so that optarg == '{' means "attachment file names are in argv".
But getopt isn't all that great to begin with... it just exists, so it's
convenient.

-- 
 -D.    dgc@xxxxxxxxxxxx    NSIT    University of Chicago