2 ;;; tm-gnus.el --- MIME extension for GNUS
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1993,1994,1995 MORIOKA Tomohiko
7 ;;; Author: Morioka Tomohiko <morioka@jaist.ac.jp>
8 ;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; Created: 1993/11/20 (obsolete mol's gnus-mime.el)
11 ;;; $Id: tm-gnus.el,v 7.9 1995/11/21 03:00:41 morioka Exp $
12 ;;; Keywords: news, MIME, multimedia, encoded-word, multilingual
14 ;;; This file is part of tm (Tools for MIME).
16 ;;; This program is free software; you can redistribute it and/or
17 ;;; modify it under the terms of the GNU General Public License as
18 ;;; published by the Free Software Foundation; either version 2, or
19 ;;; (at your option) any later version.
21 ;;; This program is distributed in the hope that it will be useful,
22 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 ;;; General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with This program. If not, write to the Free Software
28 ;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
36 (defvar tm-gnus/startup-hook nil)
42 (cond ((boundp 'gnus-original-article-buffer)
43 ;; for September Gnus and Gnus 5.2 ..
47 "^\\((ding) Gnus\\|Gnus v5\\|September Gnus\\)" gnus-version)
48 (fboundp 'mail-header-from))
49 ;; for Gnus 5.0 .. 5.1.*
53 ((fboundp 'gnus-article-prepare)
54 ;; for GNUS 3.15 .. 4.*
57 (add-hook 'gnus-select-group-hook 'tm-gnus/decode-summary-subjects)
58 (fset 'gnus-article-set-mode-line
59 (function tm-gnus/article-set-mode-line))
61 ((string-match "^GNUS 3" gnus-version)
64 (defvar gnus-article-buffer gnus-Article-buffer)
70 ;; suggested by OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
71 ;; 1995/11/08 (c.f. [tm ML:1067])
72 (defun tm-gnus/insert-article (&optional message)
75 (mail-citation-hook '(mime-editor/inserted-message-filter))
76 news-reply-header-hook
80 (mail-yank-ignored-headers mime-editor/yank-ignored-field-regexp)
81 (news-make-reply-yank-header (function
82 (lambda (message-id from) "")
84 (news-yank-original-quoting-indicator "")
86 ;; select raw article buffer
89 (set-buffer gnus-article-buffer)
90 (if (eq major-mode 'mime/viewer-mode)
91 mime::preview/article-buffer
92 gnus-article-buffer)))
94 (news-reply-yank-original 0)
102 'mime-editor/message-inserter-alist
103 'news-reply-mode (function tm-gnus/insert-article))
112 (run-hooks 'tm-gnus-load-hook)