[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/gnus/message.el,v
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/gnus/message.el,v |
Date: |
Sun, 18 May 2008 22:43:13 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Miles Bader <miles> 08/05/18 22:43:12
Index: message.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/gnus/message.el,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -b -r1.151 -r1.152
--- message.el 16 May 2008 02:05:09 -0000 1.151
+++ message.el 18 May 2008 22:43:11 -0000 1.152
@@ -4064,7 +4064,15 @@
"Regexp of potentially bogus mail addresses."
:version "23.1" ;; No Gnus
:group 'message-headers
- :type 'regexp)
+ :type '(choice (const :tag "None" nil)
+ (repeat :value-to-internal (lambda (widget value)
+ (custom-split-regexp-maybe value))
+ :match (lambda (widget value)
+ (or (stringp value)
+ (widget-editable-list-match widget
value)))
+ regexp)
+ (const "noreply\\|nospam\\|invalid")
+ regexp))
(defun message-fix-before-sending ()
"Do various things to make the message nice before sending it."
@@ -4150,7 +4158,7 @@
(forward-char)
(skip-chars-forward mm-7bit-chars)))))
(message-check 'bogus-recipient
- ;; Warn before composing or sending a mail to an invalid address.
+ ;; Warn before sending a mail to an invalid address.
(message-check-recipients)))
(defun message-bogus-recipient-p (recipients)
@@ -4197,6 +4205,8 @@
"Address `%s' might be bogus. Continue? " bog)))
(error "Bogus address."))))))))
+(custom-add-option 'message-setup-hook 'message-check-recipients)
+
(defun message-add-action (action &rest types)
"Add ACTION to be performed when doing an exit of type TYPES."
(while types