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

Re: regression: attaching files from command line fails



On Tuesday, October 28 at 03:42 PM, quoth Aron Griffis:
An alternative would be to add an attach-glob option to mutt, which mutt would then expand internally, for example:

   mutt -g \*.jpg foo@xxxxxxx

More ideas?  Dissenting opinions?

What about using the same sort of parsing that's used for the 'group' configuration command? Essentially, we say the following:

    1. neither files nor email addresses may begin with a hyphen
    2. by default, non-hyphen things on the commandline are assumed to
       be email addresses
    3. Using a "-a" flag means that subsequent non-hyphen things on
       the commandline are assumed to be files
    4. Using a "-E" flag means that subsequent non-hyphen things on
       the commandline are assumed to be email addresses

That way you can say stuff like:

    mutt -a *.{jpg,png} -E {foo,bar,baz}@example.com

(obviously, that's bash notation)

~Kyle
--
No man goes so high as he who knows not where he is going.
                                                           -- Cromwell

Attachment: pgpOPo59a2Vbg.pgp
Description: PGP signature