diff options
| author | Gerd Moellmann | 2001-05-07 11:24:51 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-07 11:24:51 +0000 |
| commit | 1b62b0624f73bc87aef0309ea3564cb40cb2c3b2 (patch) | |
| tree | f0788f4131ec4dc7def130aa97b660b3628180d3 | |
| parent | 47ba811051ef691acb0ec6be90d0348333b49877 (diff) | |
| download | emacs-1b62b0624f73bc87aef0309ea3564cb40cb2c3b2.tar.gz emacs-1b62b0624f73bc87aef0309ea3564cb40cb2c3b2.zip | |
(smtpmail-warn-about-unknown-extensions): New
option.
(smtpmail-via-smtp): Print warnings about unknown SMTP extensions
only if smtpmail-warn-about-unknown-extensions is set.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/smtpmail.el | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 41b1874282a..c181aac7387 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2001-05-07 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-05-07 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * mail/smtpmail.el (smtpmail-warn-about-unknown-extensions): New | ||
| 4 | option. | ||
| 5 | (smtpmail-via-smtp): Print warnings about unknown SMTP extensions | ||
| 6 | only if smtpmail-warn-about-unknown-extensions is set. | ||
| 7 | |||
| 3 | * mail/rmail.el (rmail-mode-map): Use rmail-sort-by-labels | 8 | * mail/rmail.el (rmail-mode-map): Use rmail-sort-by-labels |
| 4 | instead of rmail-sort-by-keywords. | 9 | instead of rmail-sort-by-keywords. |
| 5 | 10 | ||
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 6f53489571b..72c9d5c1964 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | ;;; ### Hacked by Mike Taylor, 11th October 1999 to add support for | 2 | ;;; ### Hacked by Mike Taylor, 11th October 1999 to add support for |
| 3 | ;;; automatically appending a domain to RCPT TO: addresses. | 3 | ;;; automatically appending a domain to RCPT TO: addresses. |
| 4 | 4 | ||
| 5 | ;; Copyright (C) 1995, 1996 Free Software Foundation, Inc. | 5 | ;; Copyright (C) 1995, 1996, 2001 Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp> | 7 | ;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp> |
| 8 | ;; Maintainer: Brian D. Carlstrom <bdc@ai.mit.edu> | 8 | ;; Maintainer: Brian D. Carlstrom <bdc@ai.mit.edu> |
| @@ -121,6 +121,13 @@ and sent with `smtpmail-send-queued-mail'." | |||
| 121 | :type 'directory | 121 | :type 'directory |
| 122 | :group 'smtpmail) | 122 | :group 'smtpmail) |
| 123 | 123 | ||
| 124 | (defcustom smtpmail-warn-about-unknown-extensions nil | ||
| 125 | "*If set, print warnings about unknown SMTP extensions. | ||
| 126 | This is mainly useful for development purposes, to learn about | ||
| 127 | new SMTP extensions that might be useful to support." | ||
| 128 | :type 'boolean | ||
| 129 | :group 'smtpmail) | ||
| 130 | |||
| 124 | (defvar smtpmail-queue-index-file "index" | 131 | (defvar smtpmail-queue-index-file "index" |
| 125 | "File name of queued mail index, | 132 | "File name of queued mail index, |
| 126 | This is relative to `smtpmail-queue-dir'.") | 133 | This is relative to `smtpmail-queue-dir'.") |
| @@ -393,8 +400,8 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 393 | help xusr)) | 400 | help xusr)) |
| 394 | (setq supported-extensions | 401 | (setq supported-extensions |
| 395 | (cons name supported-extensions))) | 402 | (cons name supported-extensions))) |
| 396 | (t (message "unknown extension %s" | 403 | (smtpmail-warn-about-unknown-extensions |
| 397 | name))))) | 404 | (message "Unknown extension %s" name))))) |
| 398 | (setq extension-lines (cdr extension-lines))))) | 405 | (setq extension-lines (cdr extension-lines))))) |
| 399 | 406 | ||
| 400 | (if (or (member 'onex supported-extensions) | 407 | (if (or (member 'onex supported-extensions) |