From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63988 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: How to add arguments in variable "sendmail-program" Date: Tue, 14 Nov 2006 13:04:27 +0100 Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163505939 5924 80.91.229.2 (14 Nov 2006 12:05:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 12:05:39 +0000 (UTC) Original-X-From: ding-owner+M12511@lists.math.uh.edu Tue Nov 14 13:05:38 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gjx2l-0004kD-Jk for ding-account@gmane.org; Tue, 14 Nov 2006 13:05:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Gjx29-0006zW-L2; Tue, 14 Nov 2006 06:04:57 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Gjx27-0006yt-Ox for ding@lists.math.uh.edu; Tue, 14 Nov 2006 06:04:55 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gjx23-0007Bv-R7 for ding@lists.math.uh.edu; Tue, 14 Nov 2006 06:04:55 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gjx22-0003ZA-00 for ; Tue, 14 Nov 2006 13:04:50 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.8/8.13.8) with ESMTP id kAEC4RIN015407; Tue, 14 Nov 2006 13:04:28 +0100 (MET) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 47CFE1239A; Tue, 14 Nov 2006 13:04:27 +0100 (CET) Original-To: X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Followup-To: In-Reply-To: (Reiner Steib's message of "Tue\, 14 Nov 2006 09\:54\:40 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: gemini 1085; Body=2 Fuz1=2 Fuz2=2 X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:63988 Archived-At: On Tue, Nov 14 2006, Reiner Steib wrote: > On Tue, Nov 14 2006, ssSslang wrote: > >> I use msmtp to send mail. Now I have two mail boxes: home and office. So >> I thought I should just set the sendmail-program to "/usr/bin/msmtp -a >> [home|office]"(argu -a means to use different accounts). > > Maybe msmtp offers to select the account according to the > (Envelope-)From header (see `message-sendmail-envelope-from')? > >> But when I did this, the debug told me that can not find the program >> "/usr/bin/msmtp -a [home|office]". If I set it to "/usr/bin/msmtp", >> gnus works well. But I cannot select account in this way. Can >> someone has a solution? Thanks. > > I don't think there's an option in message.el for this. Could you try > the following patch and set `message-sendmail-extra-arguments' e.g. to > '("-a" "home") / '("-a" "office")? I've installed this patch in the CVS trunk. If anyone can think of a better solution, please holler. > --- message.el 09 Nov 2006 20:15:01 +0100 7.190 > +++ message.el 14 Nov 2006 09:45:54 +0100 > @@ -761,6 +761,13 @@ > :link '(custom-manual "(message)Mail Variables") > :group 'message-sending) > > +(defcustom message-sendmail-extra-arguments nil > + "Additional arguments to `sendmail-program'." > + :version "23.0" ;; No Gnus > + :type '(repeat string) > + :group 'message-sending) > +;; :link '(custom-manual "(message)Mail Variables") > + > ;; qmail-related stuff > (defcustom message-qmail-inject-program "/var/qmail/bin/qmail-inject" > "Location of the qmail-inject program." > @@ -4282,6 +4289,7 @@ > "/usr/ucblib/sendmail") > (t "fakemail")) > nil errbuf nil "-oi") > + message-sendmail-extra-arguments > ;; Always specify who from, > ;; since some systems have broken sendmails. > ;; But some systems are more broken with -f, so Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/