From: ssSslang <sssslang@163.com.removeme>
Subject: Re: How to add arguments in variable "sendmail-program"
Date: Thu, 16 Nov 2006 11:33:47 +0800 [thread overview]
Message-ID: <k61wuktg.fsf@163.com> (raw)
In-Reply-To: <mailman.664.1163616755.2155.info-gnus-english@gnu.org>
Shanks N <shanks.n@gmail.com> writes:
>
> I too use msmtp. Can you please post the relevant parts of msmtprc
> and .gnus file? I too use multiple accounts to send and would be
> interested in knowing how to do it.
>
I don't wanna talk much about msmtp, and you could find it in its
manpage. :)
First, you must apply the patch to message.el supplied by kind Reiner.
Then, I assume you have two accounts in ~/.msmtprc file, "home" and
"office". You may try to add the following to ~/.gnus:
--8<---------------cut here---------------start------------->8---
(setq sendmail-program "/usr/bin/msmtp")
(defun sssslang-use-home-smtp-server ()
(setq message-sendmail-extra-arguments '("-a" "home"))
(setq user-full-name "sssslang")
(setq user-mail-address "sssslang@home"))
(defun sssslang-use-office-smtp-server ()
(setq message-sendmail-extra-arguments '("-a" "office"))
(setq user-full-name "sssslang")
(setq user-mail-address "sssslang@office"))
(setq gnus-posting-styles
'(("mail\\.home"
(name "sssslang")
(signature "I'm at home.")
(eval (sssslang-use-home-smtp-server)))
("mail\\.office"
(name "sssslang")
(signature "I'm at office.")
(eval (sssslang-use-office-smtp-server)))))
--8<---------------cut here---------------end--------------->8---
That's all. If I missed something or there's another better way, please
let me know, thanks.
--
ssSslang
prev parent reply other threads:[~2006-11-16 3:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 2:54 ssSslang
2006-11-14 8:54 ` Reiner Steib
2006-11-14 10:05 ` ssSslang
2006-11-15 17:39 ` Shanks N
[not found] ` <mailman.664.1163616755.2155.info-gnus-english@gnu.org>
2006-11-16 3:33 ` ssSslang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=k61wuktg.fsf@163.com \
--to=sssslang@163.com.removeme \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).