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

Re: [Mutt] #3168: $sendmail option unconditionally and wrongly uses --



#3168: $sendmail option unconditionally and wrongly uses --
-------------------------------+--------------------------------------------
  Reporter:  antonio@xxxxxxxx  |       Owner:  mutt-dev
      Type:  defect            |      Status:  new     
  Priority:  minor             |   Milestone:          
 Component:  mutt              |     Version:  1.5.19  
Resolution:                    |    Keywords:          
-------------------------------+--------------------------------------------

Comment(by antonio@xxxxxxxx):

 This is better:

 {{{
 skx@gold:~/git/mutt/mutt-1.5.19$ diffs
 --- sendlib.c-orig  2009-01-20 22:57:28.000000000 +0000
 +++ sendlib.c   2009-01-20 22:57:57.000000000 +0000
 @@ -2206,7 +2206,11 @@
      args = add_option (args, &argslen, &argsmax, "-R");
      args = add_option (args, &argslen, &argsmax, DsnReturn);
    }
 +  if ( strstr( args, "--" ) == NULL )
 +  {
 +    /* Only append "--" if not already present. */
    args = add_option (args, &argslen, &argsmax, "--");
 +  }
    args = add_args (args, &argslen, &argsmax, to);
    args = add_args (args, &argslen, &argsmax, cc);
    args = add_args (args, &argslen, &argsmax, bcc);

 }}}

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