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

[Mutt] #3235: new getopt behavior broke a documented usage



#3235: new getopt behavior broke a documented usage
------------------------------+---------------------------------------------
 Reporter:  antonio@xxxxxxxx  |       Owner:  mutt-dev
     Type:  defect            |      Status:  new     
 Priority:  major             |   Milestone:          
Component:  mutt              |     Version:  1.5.19  
 Keywords:                    |  
------------------------------+---------------------------------------------
 This is related to http://bugs.mutt.org/3202 and
 http://bugs.debian.org/530661

 This is what you report in the mutt manpage
 {{{
      mutt [-nx] [-e cmd] [-F file] [-H file] [-i file] [-s subj] [-b addr]
 [-c addr] [-a file [...]]  [--] addr [...]

 }}}

 and

 {{{
        -a file [...]
               Attach  a  file to your message using MIME.  To attach
 multiple files, separating filenames and recipient addresses with "--" is
 mandatory,
               e.g. mutt -a img.jpg *.png -- addr1 addr2.
 }}}

 So from my understanding the "--" is optional and it must be used only to
 separate a recipient address if there are multiple files to be attached.
 Unfortunately after the patch introduced with ticket #3202 the following
 behavior is no longer accepted

 {{{
 mutt -a file_to_be_attached recipient@xxxxxxxxxxx
 }}}

 this is working on 1.5.18 and broken on 1.5.19, because it will consider
 recipient@xxxxxxxxxxx as another file that needs to be attached (infact it
 will say "Can't stat recipient@xxxxxxxxxxx").

 The only way this can work is separating the filename and the recipient
 address with "--", do you plan to update your documentation to state that
 "--" is not mandatory (and not [optional])?

 I'm setting the priority to 'major' because this bug in debian is logged
 as important and it is breaking a well known and documented behavior; I
 hope you can work out a solution or modify the manpage ASAP.

 Cheers
 Antonio

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