aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2008-06-01 02:34:55 +0000
committerMiles Bader2008-06-01 02:34:55 +0000
commit656b4fa1b9a32b5fbeb37cb8c2329aea102751f7 (patch)
treedeb9aff61cd2818ba1ab08f1ee4490f199af3959
parent1e4a62d8f3c6344fdd4a4e021494b813d3c69418 (diff)
downloademacs-656b4fa1b9a32b5fbeb37cb8c2329aea102751f7.tar.gz
emacs-656b4fa1b9a32b5fbeb37cb8c2329aea102751f7.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1192
-rw-r--r--lisp/gnus/ChangeLog17
-rw-r--r--lisp/gnus/message.el53
-rw-r--r--lisp/gnus/nnmairix.el5
-rw-r--r--lisp/gnus/rfc2231.el6
4 files changed, 61 insertions, 20 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 391ff5b6b34..67da3846540 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,20 @@
12008-05-30 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * rfc2231.el (rfc2231-decode-encoded-string): Don't decode things that
4 are not 2-digit hexadecimal characters that follow `%'s.
5
62008-05-29 Reiner Steib <Reiner.Steib@gmx.de>
7
8 * message.el (message-bogus-recipient-p): Fix type in doc string.
9 Reported by Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>.
10 (message-bogus-addresses): Rename from message-bogus-address-regexp.
11 Improve custom options.
12 (message-bogus-recipient-p): Adjust accordingly.
13
142008-05-26 Katsumi Yamaoka <yamaoka@jpl.org>
15
16 * nnmairix.el: Require edmacro when compiling with XEmacs.
17
12008-05-24 Reiner Steib <Reiner.Steib@gmx.de> 182008-05-24 Reiner Steib <Reiner.Steib@gmx.de>
2 19
3 * gnus-sum.el (gnus-summary-initial-limit): Use unless instead of if. 20 * gnus-sum.el (gnus-summary-initial-limit): Use unless instead of if.
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index 82dd24c56b6..b790ac433c9 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -4060,19 +4060,32 @@ not have PROP."
4060 (setq start next))) 4060 (setq start next)))
4061 (nreverse regions))) 4061 (nreverse regions)))
4062 4062
4063(defcustom message-bogus-address-regexp nil ;; "noreply\\|nospam\\|invalid" 4063(defcustom message-bogus-addresses
4064 "Regexp of potentially bogus mail addresses." 4064 ;; '("noreply" "nospam" "invalid")
4065 '("noreply" "nospam" "invalid" "@@" "[^[:ascii:]].*@" "[ \t]")
4066 "List of regexps of potentially bogus mail addresses.
4067See `message-check-recipients' how to setup checking.
4068
4069This list should make it possible to catch typos or warn about
4070spam-trap addresses. It doesn't aim to verify strict RFC
4071conformance."
4065 :version "23.1" ;; No Gnus 4072 :version "23.1" ;; No Gnus
4066 :group 'message-headers 4073 :group 'message-headers
4067 :type '(choice (const :tag "None" nil) 4074 :type '(choice
4068 (repeat :value-to-internal (lambda (widget value) 4075 (const :tag "None" nil)
4069 (custom-split-regexp-maybe value)) 4076 (list
4070 :match (lambda (widget value) 4077 (set :inline t
4071 (or (stringp value) 4078 (const "noreply")
4072 (widget-editable-list-match widget value))) 4079 (const "nospam")
4073 regexp) 4080 (const "invalid")
4074 (const "noreply\\|nospam\\|invalid") 4081 (const :tag "duplicate @" "@@")
4075 regexp)) 4082 (const :tag "non-ascii local part" "[^[:ascii:]].*@")
4083 ;; Already caught by `message-valid-fqdn-regexp'
4084 ;; (const :tag "`_' in domain part" "@.*_")
4085 (const :tag "whitespace" "[ \t]"))
4086 (repeat :inline t
4087 :tag "Other"
4088 (regexp)))))
4076 4089
4077(defun message-fix-before-sending () 4090(defun message-fix-before-sending ()
4078 "Do various things to make the message nice before sending it." 4091 "Do various things to make the message nice before sending it."
@@ -4167,9 +4180,9 @@ not have PROP."
4167RECIPIENTS is a mail header. Return a list of potentially bogus 4180RECIPIENTS is a mail header. Return a list of potentially bogus
4168addresses. If none is found, return nil. 4181addresses. If none is found, return nil.
4169 4182
4170An addresses might be bogus if the domain part is not fully 4183An address might be bogus if the domain part is not fully
4171qualified, see `message-valid-fqdn-regexp', or if it matches 4184qualified, see `message-valid-fqdn-regexp', or if there's a
4172`message-bogus-address-regexp'." 4185matching entry in `message-bogus-addresses'."
4173 ;; FIXME: How about "foo@subdomain", when the MTA adds ".domain.tld"? 4186 ;; FIXME: How about "foo@subdomain", when the MTA adds ".domain.tld"?
4174 (let (found) 4187 (let (found)
4175 (mapc (lambda (address) 4188 (mapc (lambda (address)
@@ -4181,9 +4194,15 @@ qualified, see `message-valid-fqdn-regexp', or if it matches
4181 (string-match 4194 (string-match
4182 (concat ".@.*\\(" 4195 (concat ".@.*\\("
4183 message-valid-fqdn-regexp "\\)\\'") address))) 4196 message-valid-fqdn-regexp "\\)\\'") address)))
4184 (and (stringp message-bogus-address-regexp) 4197 (and message-bogus-addresses
4185 (string-match message-bogus-address-regexp address))) 4198 (let ((re
4186 (push address found))) 4199 (if (listp message-bogus-addresses)
4200 (mapconcat 'identity
4201 message-bogus-addresses
4202 "\\|")
4203 message-bogus-addresses)))
4204 (string-match re address))))
4205 (push address found)))
4187 ;; 4206 ;;
4188 (mail-extract-address-components recipients t)) 4207 (mail-extract-address-components recipients t))
4189 found)) 4208 found))
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el
index 6ed58682e26..33d16426744 100644
--- a/lisp/gnus/nnmairix.el
+++ b/lisp/gnus/nnmairix.el
@@ -162,6 +162,11 @@
162 162
163;;; === Keymaps 163;;; === Keymaps
164 164
165(eval-when-compile
166 (when (featurep 'xemacs)
167 ;; The `kbd' macro requires that the `read-kbd-macro' macro is available.
168 (require 'edmacro)))
169
165;; Group mode 170;; Group mode
166(defun nnmairix-group-mode-hook () 171(defun nnmairix-group-mode-hook ()
167 "Nnmairix group mode keymap." 172 "Nnmairix group mode keymap."
diff --git a/lisp/gnus/rfc2231.el b/lisp/gnus/rfc2231.el
index 1dd2e43b0a3..523f6640dc4 100644
--- a/lisp/gnus/rfc2231.el
+++ b/lisp/gnus/rfc2231.el
@@ -214,11 +214,11 @@ These look like:
214 (mm-with-unibyte-buffer 214 (mm-with-unibyte-buffer
215 (insert value) 215 (insert value)
216 (goto-char (point-min)) 216 (goto-char (point-min))
217 (while (search-forward "%" nil t) 217 (while (re-search-forward "%\\([0-9A-Fa-f][0-9A-Fa-f]\\)" nil t)
218 (insert 218 (insert
219 (prog1 219 (prog1
220 (string-to-number (buffer-substring (point) (+ (point) 2)) 16) 220 (string-to-number (match-string 1) 16)
221 (delete-region (1- (point)) (+ (point) 2))))) 221 (delete-region (match-beginning 0) (match-end 0)))))
222 ;; Decode using the charset, if any. 222 ;; Decode using the charset, if any.
223 (if (memq coding-system '(nil ascii)) 223 (if (memq coding-system '(nil ascii))
224 (buffer-string) 224 (buffer-string)