From unknown Fri Jun 20 07:17:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18173 <18173@debbugs.gnu.org> To: bug#18173 <18173@debbugs.gnu.org> Subject: Status: 24.3; message-sendmail-extra-arguments not applied Reply-To: bug#18173 <18173@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:17:04 +0000 retitle 18173 24.3; message-sendmail-extra-arguments not applied reassign 18173 emacs,gnus submitter 18173 Myles English severity 18173 normal tag 18173 notabug patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 11:09:40 2014 Received: (at submit) by debbugs.gnu.org; 2 Aug 2014 15:09:40 +0000 Received: from localhost ([127.0.0.1]:55099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDawE-0007S9-FW for submit@debbugs.gnu.org; Sat, 02 Aug 2014 11:09:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDaN3-0006Wy-EY for submit@debbugs.gnu.org; Sat, 02 Aug 2014 10:33:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDaMt-00073M-Cv for submit@debbugs.gnu.org; Sat, 02 Aug 2014 10:33:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDaMt-00073I-Ac for submit@debbugs.gnu.org; Sat, 02 Aug 2014 10:33:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDaMo-0003OV-Fh for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 10:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDaMj-0006yN-Jr for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 10:33:02 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:62054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDaMj-0006y7-7M for bug-gnu-emacs@gnu.org; Sat, 02 Aug 2014 10:32:57 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so5487106wgh.1 for ; Sat, 02 Aug 2014 07:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=C/17tqBR1oL3ccdJo15k0oXE542yN37PgHVHkI6e6J4=; b=NEDh0+L6Mv6TaW99Cz6qjWuZPuRB7XqmIXO4X+IxYURmX6k+UPxObChXOvAIhagHGj sLivSTljjRswp7Tiwh7jy2m1KDEaqhrveO+Rut5L20kH0Ox4pIviX0XG/fano9zQDZVC nL5U1hcD/zsOCWDt+kUNoS2dcJE/tpECOBd6349p9hGIHInZlQBSvvB39iepb9G5+sZY mIK8dkY6bx9eRQ976QPX4HWPPGnyDEGlarD8Idg4g+kikOteIofvOJ7yKuphfO9w6EVt /LEZRPMpohAPhjs38FFtnVMhetFxkrPfV+4pf3CmdzL+TOZwX/Te1/N3eCpjZrHrl2GZ Q2bA== X-Received: by 10.194.8.35 with SMTP id o3mr17717394wja.3.1406989975581; Sat, 02 Aug 2014 07:32:55 -0700 (PDT) Received: from localhost (host217-43-42-244.range217-43.btcentralplus.com. [217.43.42.244]) by mx.google.com with ESMTPSA id lh15sm19749502wic.10.2014.08.02.07.32.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Aug 2014 07:32:55 -0700 (PDT) From: Myles English To: bug-gnu-emacs@gnu.org Subject: 24.3; message-sendmail-extra-arguments not applied Date: Sat, 02 Aug 2014 15:13:23 +0100 Message-ID: <8738dfklm8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 02 Aug 2014 11:09:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Sending mail via msmtp worked. Then I moved the msmptrc config file from its default ~/.msmtprc and modified message-sendmail-extra-arguments to account for the new location: (setq message-sendmail-extra-arguments '("-C" "/home/myles/.config/msmtp/msmtprc")) But got the error "Sending...failed with exit value 78". The patch below prevents that error, allows the extra arguments to be applied, and thus the config file to be found. I believe this bug is (at least) nearly five years old, e.g.: http://lists.gnu.org/archive/html/info-gnus-english/2009-09/msg00048.html Thanks, Myles --- message.el +++ message.el @@ -4723,9 +4723,7 @@ (erase-buffer)))) (let* ((default-directory "/") (coding-system-for-write message-send-coding-system) - (cpr (apply - 'call-process-region - (append + (args (append (list (point-min) (point-max) sendmail-program nil errbuf nil "-oi") message-sendmail-extra-arguments @@ -4745,7 +4743,8 @@ ;; For a resend, include the specific addresses. (if resend-to-addresses (list resend-to-addresses) - '("-t")))))) + '("-t")))) + (cpr (apply 'call-process-region args))) (unless (or (null cpr) (and (numberp cpr) (zerop cpr))) (if errbuf (pop-to-buffer errbuf)) (error "Sending...failed with exit value %d" cpr))) In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Arch Linux Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_CTYPE: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8 default enable-multibyte-characters: t Major mode: mu4e:compose Minor modes in effect: flyspell-mode: t show-paren-mode: t mml-mode: t workgroups-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: 1 line-number-mode: t auto-fill-function: message-do-auto-fill transient-mark-mode: t abbrev-mode: t Recent input: scrubbed Load-path shadows: /home/myles/.emacs.d/plugins/python-mode/python-mode hides /usr/share/emacs/site-lisp/python-mode ~/.emacs.d/plugins/org-mode/lisp/org-bibtex hides /usr/share/emacs/24.3/lisp/org/org-bibtex ~/.emacs.d/plugins/org-mode/lisp/org-id hides /usr/share/emacs/24.3/lisp/org/org-id ~/.emacs.d/plugins/org-mode/lisp/org-gnus hides /usr/share/emacs/24.3/lisp/org/org-gnus ~/.emacs.d/plugins/org-mode/lisp/org-clock hides /usr/share/emacs/24.3/lisp/org/org-clock ~/.emacs.d/plugins/org-mode/lisp/ob-plantuml hides /usr/share/emacs/24.3/lisp/org/ob-plantuml ~/.emacs.d/plugins/org-mode/lisp/org-attach hides /usr/share/emacs/24.3/lisp/org/org-attach ~/.emacs.d/plugins/org-mode/lisp/org-table hides /usr/share/emacs/24.3/lisp/org/org-table ~/.emacs.d/plugins/org-mode/lisp/ob-ditaa hides /usr/share/emacs/24.3/lisp/org/ob-ditaa ~/.emacs.d/plugins/org-mode/lisp/org-pcomplete hides /usr/share/emacs/24.3/lisp/org/org-pcomplete ~/.emacs.d/plugins/org-mode/lisp/ob-table hides /usr/share/emacs/24.3/lisp/org/ob-table ~/.emacs.d/plugins/org-mode/lisp/ob-ref hides /usr/share/emacs/24.3/lisp/org/ob-ref ~/.emacs.d/plugins/org-mode/lisp/ob-exp hides /usr/share/emacs/24.3/lisp/org/ob-exp ~/.emacs.d/plugins/org-mode/lisp/ob-tangle hides /usr/share/emacs/24.3/lisp/org/ob-tangle ~/.emacs.d/plugins/org-mode/lisp/ob-asymptote hides /usr/share/emacs/24.3/lisp/org/ob-asymptote ~/.emacs.d/plugins/org-mode/lisp/org hides /usr/share/emacs/24.3/lisp/org/org ~/.emacs.d/plugins/org-mode/lisp/org-feed hides /usr/share/emacs/24.3/lisp/org/org-feed ~/.emacs.d/plugins/org-mode/lisp/ob-js hides /usr/share/emacs/24.3/lisp/org/ob-js ~/.emacs.d/plugins/org-mode/lisp/org-list hides /usr/share/emacs/24.3/lisp/org/org-list ~/.emacs.d/plugins/org-mode/lisp/ob-matlab hides /usr/share/emacs/24.3/lisp/org/ob-matlab ~/.emacs.d/plugins/org-mode/lisp/org-src hides /usr/share/emacs/24.3/lisp/org/org-src ~/.emacs.d/plugins/org-mode/lisp/ob-octave hides /usr/share/emacs/24.3/lisp/org/ob-octave ~/.emacs.d/plugins/org-mode/lisp/org-ctags hides /usr/share/emacs/24.3/lisp/org/org-ctags ~/.emacs.d/plugins/org-mode/lisp/ob-comint hides /usr/share/emacs/24.3/lisp/org/ob-comint ~/.emacs.d/plugins/org-mode/lisp/org-compat hides /usr/share/emacs/24.3/lisp/org/org-compat ~/.emacs.d/plugins/org-mode/lisp/ob-sass hides /usr/share/emacs/24.3/lisp/org/ob-sass ~/.emacs.d/plugins/org-mode/lisp/org-habit hides /usr/share/emacs/24.3/lisp/org/org-habit ~/.emacs.d/plugins/org-mode/lisp/org-docview hides /usr/share/emacs/24.3/lisp/org/org-docview ~/.emacs.d/plugins/org-mode/lisp/org-entities hides /usr/share/emacs/24.3/lisp/org/org-entities ~/.emacs.d/plugins/org-mode/lisp/org-protocol hides /usr/share/emacs/24.3/lisp/org/org-protocol ~/.emacs.d/plugins/org-mode/lisp/ob-python hides /usr/share/emacs/24.3/lisp/org/ob-python ~/.emacs.d/plugins/org-mode/lisp/ob-maxima hides /usr/share/emacs/24.3/lisp/org/ob-maxima ~/.emacs.d/plugins/org-mode/lisp/ob-eval hides /usr/share/emacs/24.3/lisp/org/ob-eval ~/.emacs.d/plugins/org-mode/lisp/ob-fortran hides /usr/share/emacs/24.3/lisp/org/ob-fortran ~/.emacs.d/plugins/org-mode/lisp/ob-mscgen hides /usr/share/emacs/24.3/lisp/org/ob-mscgen ~/.emacs.d/plugins/org-mode/lisp/org-element hides /usr/share/emacs/24.3/lisp/org/org-element ~/.emacs.d/plugins/org-mode/lisp/org-plot hides /usr/share/emacs/24.3/lisp/org/org-plot ~/.emacs.d/plugins/org-mode/lisp/org-mhe hides /usr/share/emacs/24.3/lisp/org/org-mhe ~/.emacs.d/plugins/org-mode/lisp/ob-screen hides /usr/share/emacs/24.3/lisp/org/ob-screen ~/.emacs.d/plugins/org-mode/lisp/org-crypt hides /usr/share/emacs/24.3/lisp/org/org-crypt ~/.emacs.d/plugins/org-mode/lisp/org-eshell hides /usr/share/emacs/24.3/lisp/org/org-eshell ~/.emacs.d/plugins/org-mode/lisp/ob-calc hides /usr/share/emacs/24.3/lisp/org/ob-calc ~/.emacs.d/plugins/org-mode/lisp/ob-awk hides /usr/share/emacs/24.3/lisp/org/ob-awk ~/.emacs.d/plugins/org-mode/lisp/ob-io hides /usr/share/emacs/24.3/lisp/org/ob-io ~/.emacs.d/plugins/org-mode/lisp/ob-org hides /usr/share/emacs/24.3/lisp/org/ob-org ~/.emacs.d/plugins/org-mode/lisp/ob-lilypond hides /usr/share/emacs/24.3/lisp/org/ob-lilypond ~/.emacs.d/plugins/org-mode/lisp/org-faces hides /usr/share/emacs/24.3/lisp/org/org-faces ~/.emacs.d/plugins/org-mode/lisp/ob-scheme hides /usr/share/emacs/24.3/lisp/org/ob-scheme ~/.emacs.d/plugins/org-mode/lisp/ob-lob hides /usr/share/emacs/24.3/lisp/org/ob-lob ~/.emacs.d/plugins/org-mode/lisp/ob-gnuplot hides /usr/share/emacs/24.3/lisp/org/ob-gnuplot ~/.emacs.d/plugins/org-mode/lisp/ob-ledger hides /usr/share/emacs/24.3/lisp/org/ob-ledger ~/.emacs.d/plugins/org-mode/lisp/org-loaddefs hides /usr/share/emacs/24.3/lisp/org/org-loaddefs ~/.emacs.d/plugins/org-mode/lisp/org-agenda hides /usr/share/emacs/24.3/lisp/org/org-agenda ~/.emacs.d/plugins/org-mode/lisp/org-mouse hides /usr/share/emacs/24.3/lisp/org/org-mouse ~/.emacs.d/plugins/org-mode/lisp/org-indent hides /usr/share/emacs/24.3/lisp/org/org-indent ~/.emacs.d/plugins/org-mode/lisp/org-archive hides /usr/share/emacs/24.3/lisp/org/org-archive ~/.emacs.d/plugins/org-mode/lisp/org-install hides /usr/share/emacs/24.3/lisp/org/org-install ~/.emacs.d/plugins/org-mode/lisp/ob-sql hides /usr/share/emacs/24.3/lisp/org/ob-sql ~/.emacs.d/plugins/org-mode/lisp/org-rmail hides /usr/share/emacs/24.3/lisp/org/org-rmail ~/.emacs.d/plugins/org-mode/lisp/ob-java hides /usr/share/emacs/24.3/lisp/org/ob-java ~/.emacs.d/plugins/org-mode/lisp/ob hides /usr/share/emacs/24.3/lisp/org/ob ~/.emacs.d/plugins/org-mode/lisp/org-macs hides /usr/share/emacs/24.3/lisp/org/org-macs ~/.emacs.d/plugins/org-mode/lisp/org-info hides /usr/share/emacs/24.3/lisp/org/org-info ~/.emacs.d/plugins/org-mode/lisp/ob-C hides /usr/share/emacs/24.3/lisp/org/ob-C ~/.emacs.d/plugins/org-mode/lisp/ob-perl hides /usr/share/emacs/24.3/lisp/org/ob-perl ~/.emacs.d/plugins/org-mode/lisp/ob-dot hides /usr/share/emacs/24.3/lisp/org/ob-dot ~/.emacs.d/plugins/org-mode/lisp/org-irc hides /usr/share/emacs/24.3/lisp/org/org-irc ~/.emacs.d/plugins/org-mode/lisp/org-w3m hides /usr/share/emacs/24.3/lisp/org/org-w3m ~/.emacs.d/plugins/org-mode/lisp/org-colview hides /usr/share/emacs/24.3/lisp/org/org-colview ~/.emacs.d/plugins/org-mode/lisp/ob-keys hides /usr/share/emacs/24.3/lisp/org/ob-keys ~/.emacs.d/plugins/org-mode/lisp/ob-scala hides /usr/share/emacs/24.3/lisp/org/ob-scala ~/.emacs.d/plugins/org-mode/lisp/org-inlinetask hides /usr/share/emacs/24.3/lisp/org/org-inlinetask ~/.emacs.d/plugins/org-mode/lisp/ob-ruby hides /usr/share/emacs/24.3/lisp/org/ob-ruby ~/.emacs.d/plugins/org-mode/lisp/org-bbdb hides /usr/share/emacs/24.3/lisp/org/org-bbdb ~/.emacs.d/plugins/org-mode/lisp/ob-sqlite hides /usr/share/emacs/24.3/lisp/org/ob-sqlite ~/.emacs.d/plugins/org-mode/lisp/ob-css hides /usr/share/emacs/24.3/lisp/org/ob-css ~/.emacs.d/plugins/org-mode/lisp/ob-lisp hides /usr/share/emacs/24.3/lisp/org/ob-lisp ~/.emacs.d/plugins/org-mode/lisp/ob-clojure hides /usr/share/emacs/24.3/lisp/org/ob-clojure ~/.emacs.d/plugins/org-mode/lisp/ob-ocaml hides /usr/share/emacs/24.3/lisp/org/ob-ocaml ~/.emacs.d/plugins/org-mode/lisp/ob-picolisp hides /usr/share/emacs/24.3/lisp/org/ob-picolisp ~/.emacs.d/plugins/org-mode/lisp/ob-shen hides /usr/share/emacs/24.3/lisp/org/ob-shen ~/.emacs.d/plugins/org-mode/lisp/org-mobile hides /usr/share/emacs/24.3/lisp/org/org-mobile ~/.emacs.d/plugins/org-mode/lisp/ob-R hides /usr/share/emacs/24.3/lisp/org/ob-R ~/.emacs.d/plugins/org-mode/lisp/org-datetree hides /usr/share/emacs/24.3/lisp/org/org-datetree ~/.emacs.d/plugins/org-mode/lisp/org-capture hides /usr/share/emacs/24.3/lisp/org/org-capture ~/.emacs.d/plugins/org-mode/lisp/ob-latex hides /usr/share/emacs/24.3/lisp/org/ob-latex ~/.emacs.d/plugins/org-mode/lisp/org-timer hides /usr/share/emacs/24.3/lisp/org/org-timer ~/.emacs.d/plugins/org-mode/lisp/ob-haskell hides /usr/share/emacs/24.3/lisp/org/ob-haskell ~/.emacs.d/plugins/org-mode/lisp/org-version hides /usr/share/emacs/24.3/lisp/org/org-version ~/.emacs.d/plugins/org-mode/lisp/ob-emacs-lisp hides /usr/share/emacs/24.3/lisp/org/ob-emacs-lisp ~/.emacs.d/plugins/org-mode/lisp/org-footnote hides /usr/share/emacs/24.3/lisp/org/org-footnote ~/.emacs.d/plugins/org-mode/lisp/org-checklist hides ~/.emacs.d/plugins/org-mode/contrib/lisp/org-checklist /usr/share/emacs/24.3/lisp/org/org-vm hides ~/.emacs.d/plugins/org-mode/contrib/lisp/org-vm /usr/share/emacs/24.3/lisp/org/org-mew hides ~/.emacs.d/plugins/org-mode/contrib/lisp/org-mew /usr/share/emacs/24.3/lisp/org/org-wl hides ~/.emacs.d/plugins/org-mode/contrib/lisp/org-wl Features: (shadow emacsbug image-file org-capture goto-addr view windmove misearch multi-isearch help-mode debug mail-extr sort flyspell ispell mule-util paren auto-complete-autoloads popup-autoloads yasnippet-autoloads inf-haskell haskell-cabal haskell-utils haskell-decl-scan haskell-mode haskell-string haskell-sort-imports haskell-align-imports dabbrev org-mu4e re-builder mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa epg epg-config mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils mu4e-lists mu4e-about mu4e-vars message idna rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader hl-line mu4e-meta column-marker bbdb-loaddefs date-calc workgroups tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs python-mode skeleton imenu flymake rx cc-cmds cc-engine ido ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-arc-d ess-vst-d ess-xls-d ess-lsp-l ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp5-d ess-sp3-d ess-julia ess-r-d compile ess-tracebug ess-roxy hideshow ess-help ess-developer ess-r-args eldoc ess-s-l ess ess-inf ess-mode ess-noweb-mode ess-utils ess-custom executable ess-compat ess-site yaml-mode derived org-odt org-lparse org-w3m org-wl org-vm org-special-blocks org-rmail org-mhe org-mew org-irc org-inlinetask org-habit org-jsinfo org-infojs org-info org-docview doc-view jka-compr image-mode dired org-bibtex bibtex org-attach vc-git org-drill org-learn org-id hi-lock org-refer-by-number org-table rebox2 org-checklist ox-groff cl-macs gv cl org-scrlttr2 org-isodoc org-letter-utils org-bbdb org-latex-generic org-latex org-export-latex org-beamer footnote ox-koma-letter org-html org-exp org-exp-blocks org-agenda ob-plantuml ob-ledger ob-latex ob-sh shell ob-python ob-sql ob-org ob-R org-clock ox-latex ox-icalendar ox-html ox-ascii ox-publish ox org-element avl-tree org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu easymenu calendar cal-loaddefs edmacro kmacro uniquify advice help-fns cl-lib advice-preload zenburn-theme ukholidays package time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 04 16:05:37 2014 Received: (at 18173) by debbugs.gnu.org; 4 Oct 2014 20:05:37 +0000 Received: from localhost ([127.0.0.1]:33260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaVaB-00022T-7b for submit@debbugs.gnu.org; Sat, 04 Oct 2014 16:05:36 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:35000) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaVa7-00022J-FN for 18173@debbugs.gnu.org; Sat, 04 Oct 2014 16:05:32 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XaVa6-0005W6-UC; Sat, 04 Oct 2014 16:05:30 -0400 From: Glenn Morris To: Myles English Subject: Re: bug#18173: 24.3; message-sendmail-extra-arguments not applied References: <8738dfklm8.fsf@gmail.com> X-Spook: mindwar AGT. AMME Jyllandsposten digicash AFSPC X-Ran: 0~&{]H{?5\R}M;E>5fuxW^GOMuO,i]{c9K/cf:?jtmUBAN{N]D>SJ4WW_q?T6|5GD^sg~) X-Hue: green X-Attribution: GM Date: Sat, 04 Oct 2014 16:05:30 -0400 In-Reply-To: <8738dfklm8.fsf@gmail.com> (Myles English's message of "Sat, 02 Aug 2014 15:13:23 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18173 Cc: 18173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Myles English wrote: > (setq message-sendmail-extra-arguments '("-C" > "/home/myles/.config/msmtp/msmtprc")) > > But got the error "Sending...failed with exit value 78". > > The patch below prevents that error, allows the extra arguments to be > applied, and thus the config file to be found. Sorry, I'm being dense, because I cannot see a bug here, or how your patch makes any difference to anything. Can you explain? > --- message.el > +++ message.el > @@ -4723,9 +4723,7 @@ > (erase-buffer)))) > (let* ((default-directory "/") > (coding-system-for-write message-send-coding-system) > - (cpr (apply > - 'call-process-region > - (append > + (args (append > (list (point-min) (point-max) sendmail-program > nil errbuf nil "-oi") > message-sendmail-extra-arguments > @@ -4745,7 +4743,8 @@ > ;; For a resend, include the specific addresses. > (if resend-to-addresses > (list resend-to-addresses) > - '("-t")))))) > + '("-t")))) > + (cpr (apply 'call-process-region args))) > (unless (or (null cpr) (and (numberp cpr) (zerop cpr))) > (if errbuf (pop-to-buffer errbuf)) > (error "Sending...failed with exit value %d" cpr))) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 05 08:34:50 2014 Received: (at 18173) by debbugs.gnu.org; 5 Oct 2014 12:34:50 +0000 Received: from localhost ([127.0.0.1]:33524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xal1V-0002dp-Lz for submit@debbugs.gnu.org; Sun, 05 Oct 2014 08:34:50 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:32943) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xal1S-0002dd-Nf for 18173@debbugs.gnu.org; Sun, 05 Oct 2014 08:34:47 -0400 Received: by mail-wg0-f44.google.com with SMTP id y10so4545276wgg.3 for <18173@debbugs.gnu.org>; Sun, 05 Oct 2014 05:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; bh=r/66GGDSkov5pc9YAOzXRQmIetyIahZoKMITzP4zKqw=; b=d3wnMUnLRRDbC5nd6pA2LkIbU3zOrK8UKK079jU7yMFVKGtPm2Tq2BqU6Btu6qXI8j j3OnUcL0J+o4DzkF7fNiLf5Ro0PEciPzOSj5iSb8R9A4Z+0YKa+3URTVyv+816Lune0d E5IZ528pVTs1qjUBBijAM0oCIwNvprNJ7EHfdVvsQHYqvYsGAoHRg0QPS/cqVOhssIxM 5MxW826E2y6NPwNPmM0t9cnISNZQDsI9WuMmHorcFIpgpi6FRopfItu+kvalU4Liv3QW Vk1nfeq0LPOCl3z5EkTHJFhXOcD5qQLdpb89EW8CZbn3GpMP+nYXooHt3XKNcXBc8Z7C ZMiQ== X-Received: by 10.194.83.67 with SMTP id o3mr21365464wjy.31.1412512485153; Sun, 05 Oct 2014 05:34:45 -0700 (PDT) Received: from localhost (host217-39-94-5.range217-39.btcentralplus.com. [217.39.94.5]) by mx.google.com with ESMTPSA id i5sm13838743wjz.0.2014.10.05.05.34.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Oct 2014 05:34:44 -0700 (PDT) References: <8738dfklm8.fsf@gmail.com> From: Myles English To: Glenn Morris Subject: Re: bug#18173: 24.3; message-sendmail-extra-arguments not applied Date: Sat, 04 Oct 2014 22:25:12 +0100 In-reply-to: Message-ID: <87y4suae8p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 18173 Cc: 18173@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) Glenn Morris writes: > Sorry, I'm being dense, because I cannot see a bug here, or how your > patch makes any difference to anything. Can you explain? I can't reproduce this bug anymore (you can stop reading here). I'll explain what I thought the bug was for posterity. With sendmail-program set to /usr/bin/msmtp. Without the patch below, msmtp finds its config file in the default location ~/.msmtprc . It is possible specify a different config file on the command line using the -C option. However, using this: (setq message-sendmail-extra-arguments '("-C" "/home/myles/.config/msmtp/msmtprc")) did not result in msmtp finding its config file. The doc for message-sendmail-extra-arguments says "Additional arguments to `sendmail-program'". The 'bug' was that the extra argument should be applied but it is not. After applying the patch below, the config file is found in the non-default location. The 'bug' is fixed because the extra argument is applied. I don't know why the patch works or much about elisp (I copied from elsewhere in the source). While debugging, message-sendmail-extra-arguments seemed to be something other than a string, the patch below seamed to cause it to be string consistently. Myles >> --- message.el >> +++ message.el >> @@ -4723,9 +4723,7 @@ >> (erase-buffer)))) >> (let* ((default-directory "/") >> (coding-system-for-write message-send-coding-system) >> - (cpr (apply >> - 'call-process-region >> - (append >> + (args (append >> (list (point-min) (point-max) sendmail-program >> nil errbuf nil "-oi") >> message-sendmail-extra-arguments >> @@ -4745,7 +4743,8 @@ >> ;; For a resend, include the specific addresses. >> (if resend-to-addresses >> (list resend-to-addresses) >> - '("-t")))))) >> + '("-t")))) >> + (cpr (apply 'call-process-region args))) >> (unless (or (null cpr) (and (numberp cpr) (zerop cpr))) >> (if errbuf (pop-to-buffer errbuf)) >> (error "Sending...failed with exit value %d" cpr))) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 05 12:44:32 2014 Received: (at control) by debbugs.gnu.org; 5 Oct 2014 16:44:32 +0000 Received: from localhost ([127.0.0.1]:34849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xaov9-0000Yy-Pt for submit@debbugs.gnu.org; Sun, 05 Oct 2014 12:44:31 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:51801) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xaov7-0000Yq-Rp for control@debbugs.gnu.org; Sun, 05 Oct 2014 12:44:30 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xaov7-0002O1-3N for control@debbugs.gnu.org; Sun, 05 Oct 2014 12:44:29 -0400 Date: Sun, 05 Oct 2014 12:44:29 -0400 Message-Id: Subject: control message for bug 18173 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tag 18173 notabug close 18173 From unknown Fri Jun 20 07:17:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Nov 2014 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator