Mercurial > hg > xemacs-beta
comparison lisp/tm/gnus-mime.el @ 4:b82b59fe008d r19-15b3
Import from CVS: tag r19-15b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:56 +0200 |
parents | |
children | 4b173ad71786 |
comparison
equal
deleted
inserted
replaced
3:30df88044ec6 | 4:b82b59fe008d |
---|---|
1 ;;; gnus-mime.el --- MIME extensions for Gnus | |
2 | |
3 ;; Copyright (C) 1996 Free Software Foundation, Inc. | |
4 | |
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> | |
6 ;; Created: 1996/8/6 | |
7 ;; Version: $Revision: 1.1.1.1 $ | |
8 ;; Keywords: news, MIME, multimedia, multilingual, encoded-word | |
9 | |
10 ;; This file is not part of GNU Emacs yet. | |
11 | |
12 ;; This program is free software; you can redistribute it and/or | |
13 ;; modify it under the terms of the GNU General Public License as | |
14 ;; published by the Free Software Foundation; either version 2, or (at | |
15 ;; your option) any later version. | |
16 | |
17 ;; This program is distributed in the hope that it will be useful, but | |
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
20 ;; General Public License for more details. | |
21 | |
22 ;; You should have received a copy of the GNU General Public License | |
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
25 ;; Boston, MA 02111-1307, USA. | |
26 | |
27 ;;; Code: | |
28 | |
29 (require 'tl-misc) | |
30 | |
31 | |
32 ;;; @ version | |
33 ;;; | |
34 | |
35 (defconst gnus-mime-RCS-ID | |
36 "$Id: gnus-mime.el,v 1.1.1.1 1996/12/18 03:55:31 steve Exp $") | |
37 | |
38 (defconst gnus-mime-version | |
39 (get-version-string gnus-mime-RCS-ID)) | |
40 | |
41 | |
42 ;;; @ variables | |
43 ;;; | |
44 | |
45 (defvar gnus-show-mime t | |
46 "*If non-nil, do mime processing of articles. | |
47 The articles will simply be fed to the function given by | |
48 `gnus-show-mime-method'.") | |
49 | |
50 (defvar gnus-show-mime-method 'gnus-article-preview-mime-message | |
51 "*Function to process a MIME message. | |
52 The function is called from the article buffer.") | |
53 | |
54 (defvar gnus-decode-encoded-word-method 'gnus-article-decode-encoded-word | |
55 "*Function to decode a MIME encoded-words. | |
56 The function is called from the article buffer.") | |
57 | |
58 (defvar gnus-parse-headers-hook | |
59 '(gnus-set-summary-default-charset gnus-decode-rfc1522) | |
60 "*A hook called before parsing the headers.") | |
61 | |
62 | |
63 ;;; @ load | |
64 ;;; | |
65 | |
66 (require 'gnus) | |
67 (autoload 'gnus-decode-rfc1522 "gnus-art-mime") | |
68 (autoload 'gnus-article-preview-mime-message "gnus-art-mime") | |
69 (autoload 'gnus-article-decode-encoded-word "gnus-art-mime") | |
70 (autoload 'gnus-set-summary-default-charset "gnus-sum-mime") | |
71 ;;(autoload 'gnus-get-newsgroup-headers "gnus-sum-mime") | |
72 ;;(autoload 'gnus-get-newsgroup-headers-xover "gnus-sum-mime") | |
73 (require 'gnus-charset) | |
74 | |
75 | |
76 ;;; @ for tm-partial | |
77 ;;; | |
78 | |
79 (defun gnus-mime-partial-preview-function () | |
80 (gnus-summary-preview-mime-message (gnus-summary-article-number)) | |
81 ) | |
82 | |
83 (call-after-loaded | |
84 'tm-partial | |
85 (function | |
86 (lambda () | |
87 (set-atype 'mime/content-decoding-condition | |
88 '((type . "message/partial") | |
89 (method . mime-article/grab-message/partials) | |
90 (major-mode . gnus-original-article-mode) | |
91 (summary-buffer-exp . gnus-summary-buffer) | |
92 )) | |
93 (set-alist 'tm-partial/preview-article-method-alist | |
94 'gnus-original-article-mode | |
95 'gnus-mime-partial-preview-function) | |
96 ))) | |
97 | |
98 | |
99 ;;; @ end | |
100 ;;; | |
101 | |
102 (provide 'gnus-mime) | |
103 | |
104 (if gnus-is-red-gnus-or-later | |
105 (progn | |
106 (call-after-loaded 'gnus-art (lambda () | |
107 (require 'gnus-art-mime) | |
108 )) | |
109 (call-after-loaded 'gnus-sum (lambda () | |
110 (require 'gnus-sum-mime) | |
111 )) | |
112 ) | |
113 (require 'gnus-mime-old) | |
114 ) | |
115 | |
116 (run-hooks 'gnus-mime-load-hook) | |
117 | |
118 ;;; gnus-mime.el ends here |