[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mutt-users
Subject:    Re: attach multiple files from command line
From:       Hein Zelle <hein () icce ! rug ! nl>
Date:       2007-03-22 20:42:30
Message-ID: 20070322204230.GA4396 () panoramix ! gallia ! nl
[Download RAW message or body]

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@boo.com

the most logical that I've seen sofar, about equal to

mutt -a '*.png' me@boo.com

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@icce.rug.nl
	                        http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic