Re: attach multiple files from command line
Charles Cazabon wrote:
> > If -a is not followed by any other token beginning with -, the
> > first token following -a is taken to be an attachment and all
> > subsequent tokens are taken to be recipients.
>
> I think that'd violate the principle of least surprise, and is likely to
> confuse users as a result.
Well that depends, it's the current behaviour so it might not be quite
that bad. Perhaps for this reason it would be better to introduce a
new option letter, e.g.
mutt -A B C D
would continue with attachments until it encounters another - sign,
and
mutt -a B C D
would retain the old behaviour where C and D are interpreted as addresses.
Apart from this somewhat confusing case, I do find the syntax
mutt -a *.png -- me@xxxxxxx
the most logical that I've seen sofar, about equal to
mutt -a '*.png' me@xxxxxxx
which would require globbing from within mutt. If getopt makes the
first option hard to implement, that last one might not be so bad
after all. I think it's less likely to violate the principle of least
surprise.
Hein Zelle
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
Hein Zelle hein@xxxxxxxxxxx
http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<