comparison lisp/gnus/nndoc.el @ 82975:590114f9753d gnus-5_10-pre-merge-josefsson

2004-08-31 Katsumi Yamaoka <yamaoka@jpl.org> * gnus-agent.el (gnus-agent-restore-gcc): Use ^ and regexp-quote. * gnus-sum.el (gnus-newsgroup-variables): Doc fix (tiny change). From Helmut Waitzmann <Helmut.Waitzmann@web.de>. * gnus-agent.el (gnus-agent-regenerate-group): Activate the group when the group's active is not available. * gnus-art.el (article-hide-headers): Refer to the values for gnus-ignored-headers and gnus-visible-headers in the summary buffer since a user may have set them as group parameters. (gnus-article-next-page): Fix the way to find a real end-of-buffer (tiny change). From YAGI Tatsuya <ynyaaa@ybb.ne.jp>. (gnus-article-read-summary-keys): Restore new window-start and hscroll to summary window. (gnus-prev-page-map): Remove duplicated one. * gnus-cite.el (gnus-cite-ignore-quoted-from): New user option. (gnus-cite-parse): Ignore quoted envelope From_. Suggested by Karl Chen <quarl@nospam.quarl.org> and Reiner Steib <Reiner.Steib@gmx.de>. * gnus-cus.el (gnus-agent-cat-prepare-category-field): Replace pp-to-string with gnus-pp-to-string. * gnus-eform.el (gnus-edit-form): Replace pp with gnus-pp. * gnus-group.el (gnus-group-make-kiboze-group): Replace pp with gnus-pp. * gnus-msg.el (gnus-setup-message): Ignore an article copy while parsing gnus-posting-styles when the message is not for replying. (gnus-summary-resend-message-edit): Call mime-to-mml. Suggested by Hiroshi Fujishima <pooh@nature.tsukuba.ac.jp>. (gnus-debug): Replace pp with gnus-pp. * gnus-score.el (gnus-score-save): Replace pp with gnus-pp. * gnus-spec.el (gnus-update-format): Replace pp-to-string with gnus-pp-to-string. * gnus-sum.el (gnus-read-header): Don't remove a header for the parent article of a sparse article in the thread hashtb. From Stefan Wiens <s.wi@gmx.net>. * gnus-util.el (gnus-bind-print-variables): New macro. (gnus-prin1): Use it. (gnus-prin1-to-string): Use it. (gnus-pp): New function. (gnus-pp-to-string): New function. * gnus.el: Don't make unnecessary *Group* buffer when loading. * mail-source.el (mail-source-touch-pop): Doc fix. * message.el (message-mode): Don't modify paragraph-separate there. (message-setup-fill-variables): Add mml tags to paragraph-start and paragraph-separate. Suggested by Andrew Korty <ajk@iu.edu>. (message-smtpmail-send-it): Doc fix. (message-exchange-point-and-mark): Don't activate region if it was inactive. Suggested by Hiroshi Fujishima <pooh@nature.tsukuba.ac.jp> and Jesper Harder <harder@ifa.au.dk>. * mm-decode.el (mm-save-part): Bind enable-multibyte-characters to t while entering a file name using the mm-with-multibyte macro. Suggested by Hiroshi Fujishima <pooh@nature.tsukuba.ac.jp>. * mm-encode.el (mm-content-transfer-encoding-defaults): Use qp-or-base64 for the application/* types. (mm-safer-encoding): Consider 7bit is safe. * mm-util.el (mm-with-multibyte-buffer): New macro. (mm-with-multibyte): New macro. * mm-view.el (mm-inline-render-with-function): Use multibyte buffer; decode html source by charset. * nndoc.el (nndoc-type-alist): Improve regexp for article-begin, add generate-head-function and generate-article-function to the rfc822-forward entry. (nndoc-forward-type-p): Recognize envelope From_. (nndoc-rfc822-forward-generate-article): New function. (nndoc-rfc822-forward-generate-head): New function. From David Hedbor <dhedbor@real.com>. * nnmail.el (nnmail-split-lowercase-expanded): New user option. (nnmail-expand-newtext): Lowercase expanded entries if nnmail-split-lowercase-expanded is non-nil. * score-mode.el (gnus-score-pretty-print): Replace pp with gnus-pp. * webmail.el (webmail-debug): Replace pp with gnus-pp. * gnus-art.el (gnus-article-wash-html-with-w3m): Bind w3m-safe-url-regexp as the value for mm-w3m-safe-url-regexp; use w3m-minor-mode-map instead of mm-w3m-local-map-property. (gnus-mime-save-part-and-strip): Use mm-complicated-handles instead of mm-multiple-handles. (gnus-mime-delete-part): Ditto. * mm-decode.el (mm-multiple-handles): Recognize a string as a mime handle, as well as a list. (mm-complicated-handles): Former definition of mm-multiple-handles. * mm-view.el (mm-w3m-mode-map): Remove. (mm-w3m-local-map-property): Remove. (mm-w3m-cid-retrieve-1): Call itself recursively. Suggested by ARISAWA Akihiro <ari@mbf.sphere.ne.jp>. (mm-w3m-cid-retrieve): Simplify. (mm-inline-text-html-render-with-w3m): Decode html source by charset; check META tags only when charsets are not specified in headers; specify charset to w3m-region; use w3m-minor-mode-map instead of mm-w3m-local-map-property.
author Reiner Steib <Reiner.Steib@gmx.de>
date Tue, 31 Aug 2004 14:47:59 +0000
parents 0fde48feb604
children
comparison
equal deleted inserted replaced
82974:e88e622cd27a 82975:590114f9753d
1 ;;; nndoc.el --- single file access for Gnus 1 ;;; nndoc.el --- single file access for Gnus
2 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 2 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 ;; Free Software Foundation, Inc. 3 ;; Free Software Foundation, Inc.
4 4
5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6 ;; Masanobu UMEDA <umerin@flab.flab.fujitsu.junet> 6 ;; Masanobu UMEDA <umerin@flab.flab.fujitsu.junet>
7 ;; Keywords: news 7 ;; Keywords: news
128 (file-end . "\\(^Title: Recent Seminal\\|%%%---%%%---%%%---%%%---\\)") 128 (file-end . "\\(^Title: Recent Seminal\\|%%%---%%%---%%%---%%%---\\)")
129 (generate-head-function . nndoc-generate-lanl-gov-head) 129 (generate-head-function . nndoc-generate-lanl-gov-head)
130 (article-transform-function . nndoc-transform-lanl-gov-announce) 130 (article-transform-function . nndoc-transform-lanl-gov-announce)
131 (subtype preprints guess)) 131 (subtype preprints guess))
132 (rfc822-forward 132 (rfc822-forward
133 (article-begin . "^\n") 133 (article-begin . "^\n+")
134 (body-end-function . nndoc-rfc822-forward-body-end-function)) 134 (body-end-function . nndoc-rfc822-forward-body-end-function)
135 (generate-head-function . nndoc-rfc822-forward-generate-head)
136 (generate-article-function . nndoc-rfc822-forward-generate-article))
135 (outlook 137 (outlook
136 (article-begin-function . nndoc-outlook-article-begin) 138 (article-begin-function . nndoc-outlook-article-begin)
137 (body-end . "\0")) 139 (body-end . "\0"))
138 (oe-dbx ;; Outlook Express DBX format 140 (oe-dbx ;; Outlook Express DBX format
139 (dissection-function . nndoc-oe-dbx-dissection) 141 (dissection-function . nndoc-oe-dbx-dissection)
467 t)) 469 t))
468 470
469 (defun nndoc-forward-type-p () 471 (defun nndoc-forward-type-p ()
470 (when (and (re-search-forward "^-+ \\(Start of \\)?forwarded message.*\n+" 472 (when (and (re-search-forward "^-+ \\(Start of \\)?forwarded message.*\n+"
471 nil t) 473 nil t)
472 (looking-at "[\r\n]*[a-zA-Z][a-zA-Z0-9-]*:")) 474 (looking-at "[\r\n]*[a-zA-Z][a-zA-Z0-9-]*:\\|^>?From "))
473 t)) 475 t))
474 476
475 (defun nndoc-rfc934-type-p () 477 (defun nndoc-rfc934-type-p ()
476 (when (and (re-search-forward "^-+ Start of forwarded.*\n+" nil t) 478 (when (and (re-search-forward "^-+ Start of forwarded.*\n+" nil t)
477 (not (re-search-forward "^Subject:.*digest" nil t)) 479 (not (re-search-forward "^Subject:.*digest" nil t))
489 (when (re-search-forward "^Content-Type: *message/rfc822" nil t) 491 (when (re-search-forward "^Content-Type: *message/rfc822" nil t)
490 t))) 492 t)))
491 493
492 (defun nndoc-rfc822-forward-body-end-function () 494 (defun nndoc-rfc822-forward-body-end-function ()
493 (goto-char (point-max))) 495 (goto-char (point-max)))
496
497 (defun nndoc-rfc822-forward-generate-article (article &optional head)
498 (let ((entry (cdr (assq article nndoc-dissection-alist)))
499 (begin (point))
500 encoding)
501 (with-current-buffer nndoc-current-buffer
502 (save-restriction
503 (message-narrow-to-head)
504 (setq encoding (message-fetch-field "content-transfer-encoding"))))
505 (insert-buffer-substring nndoc-current-buffer (car entry) (nth 3 entry))
506 (when encoding
507 (save-restriction
508 (narrow-to-region begin (point-max))
509 (mm-decode-content-transfer-encoding
510 (intern (downcase (mail-header-strip encoding))))))
511 (when head
512 (goto-char begin)
513 (when (search-forward "\n\n" nil t)
514 (delete-region (1- (point)) (point-max)))))
515 t)
516
517 (defun nndoc-rfc822-forward-generate-head (article)
518 (nndoc-rfc822-forward-generate-article article 'head))
494 519
495 (defun nndoc-mime-parts-type-p () 520 (defun nndoc-mime-parts-type-p ()
496 (let ((case-fold-search t) 521 (let ((case-fold-search t)
497 (limit (search-forward "\n\n" nil t))) 522 (limit (search-forward "\n\n" nil t)))
498 (goto-char (point-min)) 523 (goto-char (point-min))