From e4ad5e5b9d04cb091fc7e321da5cad4f90769249 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 7 Feb 2012 00:59:09 +0100 Subject: [PATCH] Implement an optional user parameter for the multi-smtp setup --- lisp/ChangeLog | 5 +++++ lisp/message.el | 3 ++- texi/ChangeLog | 5 +++++ texi/message.texi | 8 ++++++++ 4 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8bce97519..4e4d89499 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-02-06 Lars Ingebrigtsen + + * message.el (message-multi-smtp-send-mail): Also allow specifying the + SMTP user name. + 2012-02-06 Katsumi Yamaoka * gnus-sum.el (gnus-summary-show-thread): diff --git a/lisp/message.el b/lisp/message.el index e925e8cd8..77b23cbbb 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -4717,7 +4717,8 @@ that instead." (message-send-mail-with-sendmail)) ((equal (car method) "smtp") (let ((smtpmail-smtp-server (nth 1 method)) - (smtpmail-smtp-service (nth 2 method))) + (smtpmail-smtp-service (nth 2 method)) + (smtpmail-smtp-user (or (nth 3 method) smtpmail-smtp-user))) (message-smtpmail-send-it))) (t (error "Unknown method %s" method)))))) diff --git a/texi/ChangeLog b/texi/ChangeLog index 38c75808e..2771ecd2c 100644 --- a/texi/ChangeLog +++ b/texi/ChangeLog @@ -1,3 +1,8 @@ +2012-02-06 Lars Ingebrigtsen + + * message.texi (Mail Variables): Mention the optional user parameter + for X-Message-SMTP-Method. + 2012-02-02 Lars Ingebrigtsen * gnus.texi (Posting Styles): Mention X-Message-SMTP-Method. diff --git a/texi/message.texi b/texi/message.texi index cc3cadf8f..5fc109c1a 100644 --- a/texi/message.texi +++ b/texi/message.texi @@ -1656,6 +1656,14 @@ X-Message-SMTP-Method: smtp smtp.fsf.org 587 This will send the message via @samp{smtp.fsf.org}, using port 587. +@example +X-Message-SMTP-Method: smtp smtp.fsf.org 587 other-user +@end example + +This is the same as the above, but uses @samp{other-user} as the user +name when authenticating. This is handy if you have several +@acronym{SMTP} accounts on the same server. + @item sendmail @example -- 2.34.1