#3168: $sendmail option unconditionally and wrongly uses --
------------------------+----------------------
  Reporter:  antonio@…  |      Owner:  kevin8t8
      Type:  defect     |     Status:  assigned
  Priority:  minor      |  Milestone:
 Component:  mutt       |    Version:  1.5.19
Resolution:             |   Keywords:
------------------------+----------------------
Changes (by kevin8t8):

 * owner:  mutt-dev => kevin8t8
 * status:  new => assigned


Old description:

> Forwarded from http://bugs.debian.org
>
> ---
>
> The $sendmail option is described as follows:
>
>   # Name: sendmail
>
>   # Type: path
>
>   # Default: "/usr/sbin/sendmail -oem -oi"
>
>   # Specifies the program and arguments used to deliver mail sent by
> Mutt.
>
>   # Mutt expects that the specified program interprets additional
>
>   # arguments as recipient addresses.
>
> I need to add an "always-bcc" address, so I tried
>
>   set sendmail="/usr/sbin/sendmail -oem -oi madduck+sp...@madduck.net"
>
> and also
>
>   set sendmail="/usr/sbin/sendmail -oem -oi -- madduck+sp...@madduck.net"
>
> It turns out, however, that mutt appends not only additional
> arguments (recipients), but also unconditionally a '--'. In the
> above cases, this yields:
>
>   /usr/sbin/sendmail -oem -oi madduck+sp...@madduck.net -- f...@bar.com
>
>  /usr/sbin/sendmail -oem -oi -- madduck+sp...@madduck.net -- f...@bar.com
>
> Both are wrong. mutt should probably not append -- if it's already
> contained in $sendmail.
>
> PS: is there a better way to make mutt always BCC another address,
> other than actually using my_hdr, which is simply too brittle?

New description:

 Forwarded from http://bugs.debian.org

 ---

 The $sendmail option is described as follows:

   # Name: sendmail

   # Type: path

   # Default: "/usr/sbin/sendmail -oem -oi"

   # Specifies the program and arguments used to deliver mail sent by Mutt.

   # Mutt expects that the specified program interprets additional

   # arguments as recipient addresses.

 I need to add an "always-bcc" address, so I tried

   set sendmail="/usr/sbin/sendmail -oem -oi madduck+sp...@madduck.net"

 and also

   set sendmail="/usr/sbin/sendmail -oem -oi -- madduck+sp...@madduck.net"

 It turns out, however, that mutt appends not only additional
 arguments (recipients), but also unconditionally a '--'. In the
 above cases, this yields:

   /usr/sbin/sendmail -oem -oi madduck+sp...@madduck.net -- f...@bar.com

  /usr/sbin/sendmail -oem -oi -- madduck+sp...@madduck.net -- f...@bar.com

 Both are wrong. mutt should probably not append -- if it's already
 contained in $sendmail.

 PS: is there a better way to make mutt always BCC another address,
 other than actually using my_hdr, which is simply too brittle?

--

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

Reply via email to