Initial Commit
[packages] / xemacs-packages / tm / gnus-mime.el
1 ;;; gnus-mime.el --- MIME extensions for Gnus
2
3 ;; Copyright (C) 1996,1997 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 1998-01-14 06:27:57 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 (require 'gnus-charset)
68
69
70 ;;; @ end
71 ;;;
72
73 (provide 'gnus-mime)
74
75 (or gnus-is-red-gnus-or-later
76     (require 'gnus-mime-old)
77     )
78
79 (call-after-loaded 'gnus-art (lambda ()
80                                (require 'gnus-art-mime)
81                                ))
82 (call-after-loaded 'gnus-sum (lambda ()
83                                (require 'gnus-sum-mime)
84                                ))
85
86 (run-hooks 'gnus-mime-load-hook)
87
88 ;;; gnus-mime.el ends here