diff options
| author | Katsumi Yamaoka | 2009-06-08 22:47:11 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2009-06-08 22:47:11 +0000 |
| commit | 0cf681b6af638101d21f41cede785613a9011697 (patch) | |
| tree | d944425c4721c35eea90b03ace5630cc668e7183 | |
| parent | 4fd536b6033dee698c6b8bb702822cfd10b115b2 (diff) | |
| download | emacs-0cf681b6af638101d21f41cede785613a9011697.tar.gz emacs-0cf681b6af638101d21f41cede785613a9011697.zip | |
Synch with Gnus trunk:
2009-06-01 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-mime-delete-part): Specify gnus-decoded as charset
to deleted part.
2009-05-30 David Engster <dengste@eml.cc>
* nnmairix.el: Remove old documentation in the commentary block.
(nnmairix-request-group): Do not update active file for nnml back ends.
(nnmairix-retrieve-headers): Set gnus-nov-is-evil to t for nnimap back
end so that overview files are ignored.
(nnmairix-update-groups): Make updating the groups more robust by using
marks.
(nnmairix-determine-original-group-from-path): Circumvent mairix bug
with dollar characters in message-id.
| -rw-r--r-- | lisp/gnus/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 2 | ||||
| -rw-r--r-- | lisp/gnus/nnmairix.el | 48 |
3 files changed, 32 insertions, 34 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index de21ccf716c..f473f23d9bc 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2009-06-01 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-mime-delete-part): Specify gnus-decoded as charset | ||
| 4 | to deleted part. | ||
| 5 | |||
| 6 | 2009-05-30 David Engster <dengste@eml.cc> | ||
| 7 | |||
| 8 | * nnmairix.el: Remove old documentation in the commentary block. | ||
| 9 | (nnmairix-request-group): Do not update active file for nnml back ends. | ||
| 10 | (nnmairix-retrieve-headers): Set gnus-nov-is-evil to t for nnimap back | ||
| 11 | end so that overview files are ignored. | ||
| 12 | (nnmairix-update-groups): Make updating the groups more robust by using | ||
| 13 | marks. | ||
| 14 | (nnmairix-determine-original-group-from-path): Circumvent mairix bug | ||
| 15 | with dollar characters in message-id. | ||
| 16 | |||
| 1 | 2009-04-28 Reiner Steib <Reiner.Steib@gmx.de> | 17 | 2009-04-28 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 18 | ||
| 3 | * spam.el: Use dns-query instead of query-dns. Was renamed on | 19 | * spam.el: Use dns-query instead of query-dns. Was renamed on |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 91fccf7a435..df1a970f915 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -4943,7 +4943,7 @@ Deleting parts may malfunction or destroy the article; continue? ")) | |||
| 4943 | "`----\n")) | 4943 | "`----\n")) |
| 4944 | (setcdr data | 4944 | (setcdr data |
| 4945 | (cdr (mm-make-handle | 4945 | (cdr (mm-make-handle |
| 4946 | nil `("text/plain") nil nil | 4946 | nil `("text/plain" (charset . gnus-decoded)) nil nil |
| 4947 | (list "attachment") | 4947 | (list "attachment") |
| 4948 | (format "Deleted attachment (%s bytes)" bsize)))))) | 4948 | (format "Deleted attachment (%s bytes)" bsize)))))) |
| 4949 | ;; (set-buffer gnus-summary-buffer) | 4949 | ;; (set-buffer gnus-summary-buffer) |
diff --git a/lisp/gnus/nnmairix.el b/lisp/gnus/nnmairix.el index 251a32dc19a..b009903d67c 100644 --- a/lisp/gnus/nnmairix.el +++ b/lisp/gnus/nnmairix.el | |||
| @@ -23,9 +23,6 @@ | |||
| 23 | 23 | ||
| 24 | ;;; Commentary: | 24 | ;;; Commentary: |
| 25 | 25 | ||
| 26 | ;; THIS IS BETA SOFTWARE! This back end should not mess up or | ||
| 27 | ;; even delete your mails, but having a backup is always a good idea. | ||
| 28 | |||
| 29 | ;; This is a back end for using the mairix search engine with | 26 | ;; This is a back end for using the mairix search engine with |
| 30 | ;; Gnus. Mairix is a tool for searching words in locally stored | 27 | ;; Gnus. Mairix is a tool for searching words in locally stored |
| 31 | ;; mail. Mairix is very fast which allows using it efficiently for | 28 | ;; mail. Mairix is very fast which allows using it efficiently for |
| @@ -35,32 +32,6 @@ | |||
| 35 | ;; | 32 | ;; |
| 36 | ;; Mairix is written by Richard Curnow. More information can be found at | 33 | ;; Mairix is written by Richard Curnow. More information can be found at |
| 37 | ;; http://www.rpcurnow.force9.co.uk/mairix/ | 34 | ;; http://www.rpcurnow.force9.co.uk/mairix/ |
| 38 | ;; | ||
| 39 | ;; For details about setting up mairix&Gnus&nnmairix.el, look at the | ||
| 40 | ;; emacswiki: | ||
| 41 | ;; | ||
| 42 | ;; http://www.emacswiki.org/cgi-bin/wiki/GnusMairix | ||
| 43 | ;; | ||
| 44 | ;; The newest version of nnmairix.el can be found at | ||
| 45 | ;; | ||
| 46 | ;; http://www.emacswiki.org/cgi-bin/emacs/nnmairix.el | ||
| 47 | |||
| 48 | ;; For impatient people, here's the setup in a nutshell: | ||
| 49 | ;; | ||
| 50 | ;; This back end requires an installed mairix binary which is | ||
| 51 | ;; configured to index your mail folder. You don't have to specify a | ||
| 52 | ;; search folder (but it does no harm, either). Visit the man page of | ||
| 53 | ;; mairix and mairixrc for details. | ||
| 54 | ;; | ||
| 55 | ;; Put nnmairix.el into your search path and "(require 'nnmarix)" into | ||
| 56 | ;; your .gnus. Then call nnmairix-create-default-group (or 'G b | ||
| 57 | ;; c'). This function will ask for all necessary information to create | ||
| 58 | ;; a mairix server in Gnus with the default search folder. This | ||
| 59 | ;; default search folder will be used for all temporary searches: call | ||
| 60 | ;; nnmairix-search ('G b s') and enter a mairix query (like | ||
| 61 | ;; f:test@example.com). To create a mairix group for one specific | ||
| 62 | ;; search query, use 'G b g'. See the emacswiki or the source for more | ||
| 63 | ;; information. | ||
| 64 | 35 | ||
| 65 | ;; Commentary on the code: nnmairix sits between Gnus and the "real" | 36 | ;; Commentary on the code: nnmairix sits between Gnus and the "real" |
| 66 | ;; back end which handles the mail (currently nnml, nnimap and | 37 | ;; back end which handles the mail (currently nnml, nnimap and |
| @@ -522,7 +493,7 @@ Other back ends might or might not work.") | |||
| 522 | (when (eq nnmairix-backend 'nnml) | 493 | (when (eq nnmairix-backend 'nnml) |
| 523 | (when nnmairix-rename-files-for-nnml | 494 | (when nnmairix-rename-files-for-nnml |
| 524 | (nnmairix-rename-files-consecutively mfolder)) | 495 | (nnmairix-rename-files-consecutively mfolder)) |
| 525 | (nnml-generate-nov-databases-directory mfolder)) | 496 | (nnml-generate-nov-databases-directory mfolder nil t)) |
| 526 | (nnmairix-call-backend | 497 | (nnmairix-call-backend |
| 527 | "request-scan" folder nnmairix-backend-server) | 498 | "request-scan" folder nnmairix-backend-server) |
| 528 | (if (and fast allowfast) | 499 | (if (and fast allowfast) |
| @@ -585,8 +556,13 @@ Other back ends might or might not work.") | |||
| 585 | (mapcar | 556 | (mapcar |
| 586 | (lambda (arg) (- arg numcorr)) | 557 | (lambda (arg) (- arg numcorr)) |
| 587 | articles))) | 558 | articles))) |
| 588 | (setq rval (nnmairix-call-backend | 559 | (setq rval |
| 589 | "retrieve-headers" articles folder nnmairix-backend-server fetch-old)) | 560 | (if (eq nnmairix-backend 'nnimap) |
| 561 | (let ((gnus-nov-is-evil t)) | ||
| 562 | (nnmairix-call-backend | ||
| 563 | "retrieve-headers" articles folder nnmairix-backend-server fetch-old)) | ||
| 564 | (nnmairix-call-backend | ||
| 565 | "retrieve-headers" articles folder nnmairix-backend-server fetch-old))) | ||
| 590 | (when (eq rval 'nov) | 566 | (when (eq rval 'nov) |
| 591 | (nnmairix-replace-group-and-numbers articles folder group numcorr) | 567 | (nnmairix-replace-group-and-numbers articles folder group numcorr) |
| 592 | rval))) | 568 | rval))) |
| @@ -1223,7 +1199,8 @@ If UPDATEDB is t, database for SERVERNAME will be updated first." | |||
| 1223 | (unless (and skipdefault | 1199 | (unless (and skipdefault |
| 1224 | (string= (car cur) default)) | 1200 | (string= (car cur) default)) |
| 1225 | (gnus-group-jump-to-group (car cur)) | 1201 | (gnus-group-jump-to-group (car cur)) |
| 1226 | (gnus-group-get-new-news-this-group))))))) | 1202 | (gnus-group-mark-group 1))) |
| 1203 | (gnus-group-get-new-news-this-group))))) | ||
| 1227 | 1204 | ||
| 1228 | (defun nnmairix-remove-tick-mark-original-article () | 1205 | (defun nnmairix-remove-tick-mark-original-article () |
| 1229 | "Remove tick mark from original article. | 1206 | "Remove tick mark from original article. |
| @@ -1692,6 +1669,11 @@ SERVER." | |||
| 1692 | (nnmairix-open-server server) | 1669 | (nnmairix-open-server server) |
| 1693 | (while (string-match "[<>]" mid) | 1670 | (while (string-match "[<>]" mid) |
| 1694 | (setq mid (replace-match "" t t mid))) | 1671 | (setq mid (replace-match "" t t mid))) |
| 1672 | ;; mairix somehow does not like '$' in message-id | ||
| 1673 | (when (string-match "\\$" mid) | ||
| 1674 | (setq mid (concat mid "="))) | ||
| 1675 | (while (string-match "\\$" mid) | ||
| 1676 | (setq mid (replace-match "=," t t mid))) | ||
| 1695 | (let (allgroups) | 1677 | (let (allgroups) |
| 1696 | (if (zerop (nnmairix-call-mairix-binary-raw | 1678 | (if (zerop (nnmairix-call-mairix-binary-raw |
| 1697 | (split-string nnmairix-mairix-command) | 1679 | (split-string nnmairix-mairix-command) |