From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/8200 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: How to add arguments in variable "sendmail-program" Date: Tue, 14 Nov 2006 09:54:40 +0100 Organization: Dept. of Theoretical Physics, University of Ulm 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 1163497736 9350 80.91.229.2 (14 Nov 2006 09:48:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 09:48:56 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Nov 14 10:48:54 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GjuuJ-0003r3-KQ for gegu-info-gnus-english@m.gmane.org; Tue, 14 Nov 2006 10:48:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GjuuJ-0006nt-3P for gegu-info-gnus-english@m.gmane.org; Tue, 14 Nov 2006 04:48:43 -0500 Original-Newsgroups: gnu.emacs.gnus X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:ghZWLA46b/gqkL52pa41C/0Vv6w= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1163494723 134.60.10.123 (14 Nov 2006 09:58:43 +0200) Original-Lines: 50 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-ulm.de!viandante.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.gnus:78384 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:8200 Archived-At: 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")? --8<---------------cut here---------------start------------->8--- --- 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 --8<---------------cut here---------------end--------------->8--- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/