aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2008-05-18 22:43:12 +0000
committerMiles Bader2008-05-18 22:43:12 +0000
commit03c673c9f4e65bacf224c3010c4c36997fb0a9f0 (patch)
treef7dbc4af4dfaf3462280c588a90c091c36e64bc7
parenta019dc407dcf9d58b1b54af99181e45a3b38d764 (diff)
downloademacs-03c673c9f4e65bacf224c3010c4c36997fb0a9f0.tar.gz
emacs-03c673c9f4e65bacf224c3010c4c36997fb0a9f0.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1168
-rw-r--r--lisp/gnus/ChangeLog8
-rw-r--r--lisp/gnus/message.el14
-rw-r--r--lisp/gnus/mml.el12
3 files changed, 27 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index f8dffcd8a29..9f4ef735a54 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,11 @@
12008-05-16 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * mml.el (mml-attach-buffer): Prompt for `disposition'.
4
5 * message.el (message-bogus-address-regexp): Fix and improve custom
6 type.
7 (message-setup-hook): Add message-check-recipients as custom option.
8
12008-05-15 Reiner Steib <Reiner.Steib@gmx.de> 92008-05-15 Reiner Steib <Reiner.Steib@gmx.de>
2 10
3 * message.el (message-cite-function): Remove bogus autoload which crept 11 * message.el (message-cite-function): Remove bogus autoload which crept
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 6cf571d6222..82dd24c56b6 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4064,7 +4064,15 @@ not have PROP."
4064 "Regexp of potentially bogus mail addresses." 4064 "Regexp of potentially bogus mail addresses."
4065 :version "23.1" ;; No Gnus 4065 :version "23.1" ;; No Gnus
4066 :group 'message-headers 4066 :group 'message-headers
4067 :type 'regexp) 4067 :type '(choice (const :tag "None" nil)
4068 (repeat :value-to-internal (lambda (widget value)
4069 (custom-split-regexp-maybe value))
4070 :match (lambda (widget value)
4071 (or (stringp value)
4072 (widget-editable-list-match widget value)))
4073 regexp)
4074 (const "noreply\\|nospam\\|invalid")
4075 regexp))
4068 4076
4069(defun message-fix-before-sending () 4077(defun message-fix-before-sending ()
4070 "Do various things to make the message nice before sending it." 4078 "Do various things to make the message nice before sending it."
@@ -4150,7 +4158,7 @@ not have PROP."
4150 (forward-char) 4158 (forward-char)
4151 (skip-chars-forward mm-7bit-chars))))) 4159 (skip-chars-forward mm-7bit-chars)))))
4152 (message-check 'bogus-recipient 4160 (message-check 'bogus-recipient
4153 ;; Warn before composing or sending a mail to an invalid address. 4161 ;; Warn before sending a mail to an invalid address.
4154 (message-check-recipients))) 4162 (message-check-recipients)))
4155 4163
4156(defun message-bogus-recipient-p (recipients) 4164(defun message-bogus-recipient-p (recipients)
@@ -4197,6 +4205,8 @@ This function could be useful in `message-setup-hook'."
4197 "Address `%s' might be bogus. Continue? " bog))) 4205 "Address `%s' might be bogus. Continue? " bog)))
4198 (error "Bogus address.")))))))) 4206 (error "Bogus address."))))))))
4199 4207
4208(custom-add-option 'message-setup-hook 'message-check-recipients)
4209
4200(defun message-add-action (action &rest types) 4210(defun message-add-action (action &rest types)
4201 "Add ACTION to be performed when doing an exit of type TYPES." 4211 "Add ACTION to be performed when doing an exit of type TYPES."
4202 (while types 4212 (while types
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el
index 3aaa9c79207..7490a002d37 100644
--- a/lisp/gnus/mml.el
+++ b/lisp/gnus/mml.el
@@ -1313,18 +1313,20 @@ Ask for type, description or disposition according to
1313 (setq disposition (mml-minibuffer-read-disposition type nil file))) 1313 (setq disposition (mml-minibuffer-read-disposition type nil file)))
1314 (mml-attach-file file type description disposition))))) 1314 (mml-attach-file file type description disposition)))))
1315 1315
1316(defun mml-attach-buffer (buffer &optional type description) 1316(defun mml-attach-buffer (buffer &optional type description disposition)
1317 "Attach a buffer to the outgoing MIME message. 1317 "Attach a buffer to the outgoing MIME message.
1318See `mml-attach-file' for details of operation." 1318BUFFER is the name of the buffer to attach. See
1319`mml-attach-file' for details of operation."
1319 (interactive 1320 (interactive
1320 (let* ((buffer (read-buffer "Attach buffer: ")) 1321 (let* ((buffer (read-buffer "Attach buffer: "))
1321 (type (mml-minibuffer-read-type buffer "text/plain")) 1322 (type (mml-minibuffer-read-type buffer "text/plain"))
1322 (description (mml-minibuffer-read-description))) 1323 (description (mml-minibuffer-read-description))
1323 (list buffer type description))) 1324 (disposition (mml-minibuffer-read-disposition type nil)))
1325 (list buffer type description disposition)))
1324 (save-excursion 1326 (save-excursion
1325 (unless (message-in-body-p) (goto-char (point-max))) 1327 (unless (message-in-body-p) (goto-char (point-max)))
1326 (mml-insert-empty-tag 'part 'type type 'buffer buffer 1328 (mml-insert-empty-tag 'part 'type type 'buffer buffer
1327 'disposition "attachment" 1329 'disposition disposition
1328 'description description))) 1330 'description description)))
1329 1331
1330(defun mml-attach-external (file &optional type description) 1332(defun mml-attach-external (file &optional type description)