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

Re: [Mutt] #3097: mutt's multi-file -a handling fails for



#3097: mutt's multi-file -a handling fails for POSIX-compliant getopt()
---------------------+------------------------------------------------------
  Reporter:  jhawk   |       Owner:  mutt-dev                        
      Type:  defect  |      Status:  closed                          
  Priority:  minor   |   Milestone:  1.6                             
 Component:  mutt    |     Version:  1.5.17                          
Resolution:  fixed   |    Keywords:  attachment -a posix getopt patch
---------------------+------------------------------------------------------
Changes (by Aron Griffis <agriffis@xxxxxxxxx>):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 (In [31c9e9727d42]) Handle -- correctly with or without -a, closes #3097

 Prefix optstring with "+" to force POSIX behavior on GNU getopt, and
 thereby
 prevent reordering argv.  This allows us to correctly handle mixed
 addresses,
 attachments, options and the double-dash to signal end-of-options.

 Signed-off-by: Aron Griffis <agriffis@xxxxxxxxx>

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3097#comment:10>
Mutt <http://www.mutt.org/>
The Mutt mail user agent