[gnus git] branch master updated: m0-1-71-ge4ad5e5 =1= Implement an optional user parameter for the multi-smtp setup

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  e4ad5e5b9d04cb091fc7e321da5cad4f90769249 (commit)
      from  78b804fede9a7a9337c4dd8f22f05b06454dfca4 (commit)


- Log -----------------------------------------------------------------
commit e4ad5e5b9d04cb091fc7e321da5cad4f90769249
Author: Lars Ingebrigtsen <[email protected]>
Date:   Tue Feb 7 00:59:09 2012 +0100

    Implement an optional user parameter for the multi-smtp setup

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bce975..4e4d894 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-06  Lars Ingebrigtsen  <[email protected]>
+
+	* message.el (message-multi-smtp-send-mail): Also allow specifying the
+	SMTP user name.
+
 2012-02-06  Katsumi Yamaoka  <[email protected]>
 
 	* gnus-sum.el (gnus-summary-show-thread):
diff --git a/lisp/message.el b/lisp/message.el
index e925e8c..77b23cb 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 38c7580..2771ecd 100644
--- a/texi/ChangeLog
+++ b/texi/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-06  Lars Ingebrigtsen  <[email protected]>
+
+	* message.texi (Mail Variables): Mention the optional user parameter
+	for X-Message-SMTP-Method.
+
 2012-02-02  Lars Ingebrigtsen  <[email protected]>
 
 	* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
diff --git a/texi/message.texi b/texi/message.texi
index cc3cadf..5fc109c 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

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog    |    5 +++++
 lisp/message.el   |    3 ++-
 texi/ChangeLog    |    5 +++++
 texi/message.texi |    8 ++++++++
 4 files changed, 20 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.