diff options
| author | Miles Bader | 2005-09-09 01:47:33 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-09-09 01:47:33 +0000 |
| commit | d752cf539f3dd6139db8570aa256c0b75235225a (patch) | |
| tree | bc4bb2dc77e17b1668510c5a17c50e76f8304c29 | |
| parent | 47b8bc5d4598a0335ad1d6453e0803df7b9a584b (diff) | |
| download | emacs-d752cf539f3dd6139db8570aa256c0b75235225a.tar.gz emacs-d752cf539f3dd6139db8570aa256c0b75235225a.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-536
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 112-114)
- Update from CVS
2005-09-07 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/spam-report.el (spam-report-gmane): Make it work without
X-Report-Spam header. Gmane now only provides Archived-At. This
is only used if `spam-report-gmane-use-article-number' is nil.
(spam-report-gmane-spam-header): Removed. Not used anymore.
* lisp/gnus/nnweb.el (nnweb-google-wash-article): Print a message if article
is not available.
2005-09-07 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
* lisp/gnus/gnus-art.el (gnus-mime-display-single): Decode text/* parts
content before displaying.
2005-09-06 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/mml-smime.el: Remove defvar of gnus-extract-address-components.
2005-09-06 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Disable support modes.
| -rw-r--r-- | lisp/gnus/ChangeLog | 27 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 9 | ||||
| -rw-r--r-- | lisp/gnus/mm-view.el | 18 | ||||
| -rw-r--r-- | lisp/gnus/mml-smime.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnweb.el | 22 | ||||
| -rw-r--r-- | lisp/gnus/spam-report.el | 45 |
6 files changed, 88 insertions, 35 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 530758aefb0..ac4dc382907 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2005-09-07 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * spam-report.el (spam-report-gmane): Make it work without | ||
| 4 | X-Report-Spam header. Gmane now only provides Archived-At. This | ||
| 5 | is only used if `spam-report-gmane-use-article-number' is nil. | ||
| 6 | (spam-report-gmane-spam-header): Removed. Not used anymore. | ||
| 7 | |||
| 8 | * nnweb.el (nnweb-google-wash-article): Print a message if article | ||
| 9 | is not available. | ||
| 10 | |||
| 11 | 2005-09-07 TSUCHIYA Masatoshi <tsuchiya@namazu.org> | ||
| 12 | |||
| 13 | * gnus-art.el (gnus-mime-display-single): Decode text/* parts | ||
| 14 | content before displaying. | ||
| 15 | |||
| 16 | 2005-09-06 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 17 | |||
| 18 | * mml-smime.el: Remove defvar of gnus-extract-address-components. | ||
| 19 | |||
| 20 | 2005-09-06 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 21 | |||
| 22 | * mm-view.el (mm-display-inline-fontify): Disable support modes. | ||
| 23 | |||
| 1 | 2005-09-05 Reiner Steib <Reiner.Steib@gmx.de> | 24 | 2005-09-05 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 25 | ||
| 3 | * message.el (message-tab-body-function): Fixed mismatched custom | 26 | * message.el (message-tab-body-function): Fixed mismatched custom |
| @@ -5,7 +28,7 @@ | |||
| 5 | 28 | ||
| 6 | * gnus.el (gnus-group-change-level-function): Ditto. | 29 | * gnus.el (gnus-group-change-level-function): Ditto. |
| 7 | 30 | ||
| 8 | * gnus-msg.el (gnus-outgoing-message-group): Ditto. | 31 | * gnus-msg.el (gnus-outgoing-message-group): Ditto. |
| 9 | 32 | ||
| 10 | * gnus-art.el (gnus-signature-limit) | 33 | * gnus-art.el (gnus-signature-limit) |
| 11 | (gnus-article-mime-part-function): Ditto. | 34 | (gnus-article-mime-part-function): Ditto. |
| @@ -237,8 +260,6 @@ | |||
| 237 | * gnus-util.el (gnus-beginning-of-window): Remove. | 260 | * gnus-util.el (gnus-beginning-of-window): Remove. |
| 238 | (gnus-end-of-window): Remove. | 261 | (gnus-end-of-window): Remove. |
| 239 | 262 | ||
| 240 | * lpath.el: Don't bind scroll-margin. | ||
| 241 | |||
| 242 | 2005-07-25 Simon Josefsson <jas@extundo.com> | 263 | 2005-07-25 Simon Josefsson <jas@extundo.com> |
| 243 | 264 | ||
| 244 | * pgg.el (pgg-insert-url-with-w3): Don't load w3, it is possible | 265 | * pgg.el (pgg-insert-url-with-w3): Don't load w3, it is possible |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b07954772d2..3bdc93935bc 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -4862,7 +4862,14 @@ If displaying \"text/html\" is discouraged \(see | |||
| 4862 | (forward-line -1) | 4862 | (forward-line -1) |
| 4863 | (setq beg (point))) | 4863 | (setq beg (point))) |
| 4864 | (gnus-article-insert-newline) | 4864 | (gnus-article-insert-newline) |
| 4865 | (mm-insert-inline handle (mm-get-part handle)) | 4865 | (mm-insert-inline handle |
| 4866 | (let ((charset | ||
| 4867 | (mail-content-type-get | ||
| 4868 | (mm-handle-type handle) 'charset))) | ||
| 4869 | (if (eq charset 'gnus-decoded) | ||
| 4870 | (mm-get-part handle) | ||
| 4871 | (mm-decode-string (mm-get-part handle) | ||
| 4872 | charset)))) | ||
| 4866 | (goto-char (point-max)))) | 4873 | (goto-char (point-max)))) |
| 4867 | ;; Do highlighting. | 4874 | ;; Do highlighting. |
| 4868 | (save-excursion | 4875 | (save-excursion |
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 2d78ccab864..ac408aa179f 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el | |||
| @@ -476,14 +476,16 @@ | |||
| 476 | (buffer-disable-undo) | 476 | (buffer-disable-undo) |
| 477 | (mm-insert-part handle) | 477 | (mm-insert-part handle) |
| 478 | (require 'font-lock) | 478 | (require 'font-lock) |
| 479 | ;; Inhibit font-lock this time (*-mode-hook might run | 479 | (let ((font-lock-maximum-size nil) |
| 480 | ;; `turn-on-font-lock') so that jit-lock may not turn off | 480 | ;; Disable support modes, e.g., jit-lock, lazy-lock, etc. |
| 481 | ;; font-lock immediately after this. | 481 | (font-lock-mode-hook nil) |
| 482 | (let ((font-lock-mode t)) | 482 | (font-lock-support-mode nil) |
| 483 | (funcall mode)) | 483 | ;; I find font-lock a bit too verbose. |
| 484 | (let ((font-lock-verbose nil)) | 484 | (font-lock-verbose nil)) |
| 485 | ;; I find font-lock a bit too verbose. | 485 | (funcall mode) |
| 486 | (font-lock-fontify-buffer)) | 486 | ;; The mode function might have already turned on font-lock. |
| 487 | (unless (symbol-value 'font-lock-mode) | ||
| 488 | (font-lock-fontify-buffer))) | ||
| 487 | ;; By default, XEmacs font-lock uses non-duplicable text | 489 | ;; By default, XEmacs font-lock uses non-duplicable text |
| 488 | ;; properties. This code forces all the text properties | 490 | ;; properties. This code forces all the text properties |
| 489 | ;; to be copied along with the text. | 491 | ;; to be copied along with the text. |
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el index 25cb3094cbb..2933c14744a 100644 --- a/lisp/gnus/mml-smime.el +++ b/lisp/gnus/mml-smime.el | |||
| @@ -29,8 +29,6 @@ | |||
| 29 | 29 | ||
| 30 | (eval-when-compile (require 'cl)) | 30 | (eval-when-compile (require 'cl)) |
| 31 | 31 | ||
| 32 | (defvar gnus-extract-address-components) | ||
| 33 | |||
| 34 | (require 'smime) | 32 | (require 'smime) |
| 35 | (require 'mm-decode) | 33 | (require 'mm-decode) |
| 36 | (autoload 'message-narrow-to-headers "message") | 34 | (autoload 'message-narrow-to-headers "message") |
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el index 85c8d4c5239..d3737cd66fd 100644 --- a/lisp/gnus/nnweb.el +++ b/lisp/gnus/nnweb.el | |||
| @@ -319,12 +319,22 @@ Valid types include `google', `dejanews', and `gmane'.") | |||
| 319 | ;; We have Google's masked e-mail addresses here. :-/ | 319 | ;; We have Google's masked e-mail addresses here. :-/ |
| 320 | (let ((case-fold-search t)) | 320 | (let ((case-fold-search t)) |
| 321 | (goto-char (point-min)) | 321 | (goto-char (point-min)) |
| 322 | (delete-region (point-min) | 322 | (if (save-excursion |
| 323 | (1+ (re-search-forward "^<pre>" nil t))) | 323 | (or (re-search-forward "The requested message.*could not be found." |
| 324 | (goto-char (point-min)) | 324 | nil t) |
| 325 | (delete-region (- (re-search-forward "^</pre>" nil t) (length "</pre>")) | 325 | (not (and (re-search-forward "^<pre>" nil t) |
| 326 | (point-max)) | 326 | (re-search-forward "^</pre>" nil t))))) |
| 327 | (mm-url-decode-entities))) | 327 | ;; FIXME: Don't know how to indicate "not found". |
| 328 | ;; Should this function throw an error? --rsteib | ||
| 329 | (progn | ||
| 330 | (gnus-message 3 "Requested article not found") | ||
| 331 | (erase-buffer)) | ||
| 332 | (delete-region (point-min) | ||
| 333 | (1+ (re-search-forward "^<pre>" nil t))) | ||
| 334 | (goto-char (point-min)) | ||
| 335 | (delete-region (- (re-search-forward "^</pre>" nil t) (length "</pre>")) | ||
| 336 | (point-max)) | ||
| 337 | (mm-url-decode-entities)))) | ||
| 328 | 338 | ||
| 329 | (defun nnweb-google-parse-1 (&optional Message-ID) | 339 | (defun nnweb-google-parse-1 (&optional Message-ID) |
| 330 | (let ((i 0) | 340 | (let ((i 0) |
diff --git a/lisp/gnus/spam-report.el b/lisp/gnus/spam-report.el index 50a564885bb..302cafbb19b 100644 --- a/lisp/gnus/spam-report.el +++ b/lisp/gnus/spam-report.el | |||
| @@ -49,12 +49,6 @@ instead." | |||
| 49 | (regexp :value "^nntp\+.*:gmane\.")) | 49 | (regexp :value "^nntp\+.*:gmane\.")) |
| 50 | :group 'spam-report) | 50 | :group 'spam-report) |
| 51 | 51 | ||
| 52 | (defcustom spam-report-gmane-spam-header | ||
| 53 | "^X-Report-Spam: http://\\([^/]+\\)\\(.*\\)$" | ||
| 54 | "String matching Gmane spam-reporting header. Two match groups are needed." | ||
| 55 | :type 'regexp | ||
| 56 | :group 'spam-report) | ||
| 57 | |||
| 58 | (defcustom spam-report-gmane-use-article-number t | 52 | (defcustom spam-report-gmane-use-article-number t |
| 59 | "Whether the article number (faster!) or the header should be used." | 53 | "Whether the article number (faster!) or the header should be used." |
| 60 | :type 'boolean | 54 | :type 'boolean |
| @@ -103,19 +97,40 @@ undo that change.") | |||
| 103 | article)) | 97 | article)) |
| 104 | (with-current-buffer nntp-server-buffer | 98 | (with-current-buffer nntp-server-buffer |
| 105 | (gnus-request-head article gnus-newsgroup-name) | 99 | (gnus-request-head article gnus-newsgroup-name) |
| 106 | (goto-char (point-min)) | 100 | (let ((case-fold-search t) |
| 107 | (if (re-search-forward spam-report-gmane-spam-header nil t) | 101 | field host report url) |
| 108 | (let* ((host (match-string 1)) | 102 | ;; First check for X-Report-Spam because it's more specific to |
| 109 | (report (match-string 2)) | 103 | ;; spam reporting than Archived-At. OTOH, all new articles on |
| 110 | (url (format "http://%s%s" host report))) | 104 | ;; Gmane don't have X-Report-Spam anymore (unless Lars changes his |
| 111 | (gnus-message 7 "Reporting spam through URL %s..." url) | 105 | ;; mind :-)). |
| 112 | (spam-report-url-ping host report)) | 106 | ;; |
| 113 | (gnus-message 3 "Could not find X-Report-Spam in article %d..." | 107 | ;; There might be more than one Archived-At header so we need to |
| 114 | article))))))) | 108 | ;; find (and transform) the one related to Gmane. |
| 109 | (setq field (or (gnus-fetch-field "X-Report-Spam") | ||
| 110 | (gnus-fetch-field "Archived-At"))) | ||
| 111 | (setq host (progn | ||
| 112 | (string-match | ||
| 113 | (concat "http://\\([a-z]+\\.gmane\\.org\\)" | ||
| 114 | "\\(/[^:/]+[:/][0-9]+\\)") | ||
| 115 | field) | ||
| 116 | (match-string 1 field))) | ||
| 117 | (setq report (match-string 2 field)) | ||
| 118 | (when (string-equal "permalink.gmane.org" host) | ||
| 119 | (setq host "spam.gmane.org")) | ||
| 120 | (setq url (format "http://%s%s" host report)) | ||
| 121 | (if (not (and host report url)) | ||
| 122 | (gnus-message | ||
| 123 | 3 "Could not find a spam report header in article %d..." | ||
| 124 | article) | ||
| 125 | (gnus-message 7 "Reporting spam through URL %s..." url) | ||
| 126 | (spam-report-url-ping host report)))))))) | ||
| 115 | 127 | ||
| 116 | (defun spam-report-url-ping (host report) | 128 | (defun spam-report-url-ping (host report) |
| 117 | "Ping a host through HTTP, addressing a specific GET resource using | 129 | "Ping a host through HTTP, addressing a specific GET resource using |
| 118 | the function specified by `spam-report-url-ping-function'." | 130 | the function specified by `spam-report-url-ping-function'." |
| 131 | ;; Example: | ||
| 132 | ;; host: "spam.gmane.org" | ||
| 133 | ;; report: "/gmane.some.group:123456" | ||
| 119 | (funcall spam-report-url-ping-function host report)) | 134 | (funcall spam-report-url-ping-function host report)) |
| 120 | 135 | ||
| 121 | (defun spam-report-url-ping-plain (host report) | 136 | (defun spam-report-url-ping-plain (host report) |