* Re: How to add arguments in variable "sendmail-program"
[not found] ` <v9r6w6h0hb.fsf@marauder.physik.uni-ulm.de>
@ 2006-11-14 12:04 ` Reiner Steib
0 siblings, 0 replies; only message in thread
From: Reiner Steib @ 2006-11-14 12:04 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-11-14 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <r6w6u48z.fsf@163.com>
[not found] ` <v9r6w6h0hb.fsf@marauder.physik.uni-ulm.de>
2006-11-14 12:04 ` How to add arguments in variable "sendmail-program" Reiner Steib
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).