diff options
| author | Lars Magne Ingebrigtsen | 2011-08-21 06:11:59 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-08-21 06:11:59 +0200 |
| commit | f5e3c5984b072553838cb15dfd4ab94a9f6ac436 (patch) | |
| tree | 527c82530a68f384222fc095a8cbd01a768c97c3 /lisp | |
| parent | 39eeb2f7c5fa7ff0b2a02e84a60d57990b19fbac (diff) | |
| download | emacs-f5e3c5984b072553838cb15dfd4ab94a9f6ac436.tar.gz emacs-f5e3c5984b072553838cb15dfd4ab94a9f6ac436.zip | |
Introduce a new variable to allow controlling the SMTP user name
* mail/smtpmail.el (smtpmail-smtp-user): New variable.
(smtpmail-try-auth-methods): Use it.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index edb2fc2cd9f..e383f86971f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * mail/smtpmail.el (smtpmail-smtp-user): New variable. | ||
| 4 | (smtpmail-try-auth-methods): Use it. | ||
| 5 | |||
| 1 | 2011-08-21 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-08-21 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * font-lock.el (font-lock-fontify-region) | 8 | * font-lock.el (font-lock-fontify-region) |
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 637d10135fa..caec69e7e9e 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -86,6 +86,11 @@ The default value would be \"smtp\" or 25." | |||
| 86 | :type '(choice (integer :tag "Port") (string :tag "Service")) | 86 | :type '(choice (integer :tag "Port") (string :tag "Service")) |
| 87 | :group 'smtpmail) | 87 | :group 'smtpmail) |
| 88 | 88 | ||
| 89 | (defcustom smtpmail-smtp-user nil | ||
| 90 | "User name to use when looking up credentials." | ||
| 91 | :type '(choice (const nil) string) | ||
| 92 | :group 'smtpmail) | ||
| 93 | |||
| 89 | (defcustom smtpmail-local-domain nil | 94 | (defcustom smtpmail-local-domain nil |
| 90 | "Local domain name without a host name. | 95 | "Local domain name without a host name. |
| 91 | If the function `system-name' returns the full internet address, | 96 | If the function `system-name' returns the full internet address, |
| @@ -490,6 +495,7 @@ The list is in preference order.") | |||
| 490 | (auth-source-search | 495 | (auth-source-search |
| 491 | :host host | 496 | :host host |
| 492 | :port port | 497 | :port port |
| 498 | :user smtpmail-smtp-user | ||
| 493 | :max 1 | 499 | :max 1 |
| 494 | :require (and ask-for-password | 500 | :require (and ask-for-password |
| 495 | '(:user :secret)) | 501 | '(:user :secret)) |
| @@ -510,6 +516,7 @@ The list is in preference order.") | |||
| 510 | :max 1 | 516 | :max 1 |
| 511 | :host host | 517 | :host host |
| 512 | :port port | 518 | :port port |
| 519 | :user smtpmail-smtp-user | ||
| 513 | :require '(:user :secret) | 520 | :require '(:user :secret) |
| 514 | :create t)) | 521 | :create t)) |
| 515 | password (plist-get auth-info :secret))) | 522 | password (plist-get auth-info :secret))) |