+++ /dev/null
-;;;
-;;; tm-gd5.el --- tm-gnus shared module for Gnus 5.*.
-;;;
-;;; Copyright (C) 1995 Free Software Foundation, Inc.
-;;; Copyright (C) 1995,1996 MORIOKA Tomohiko
-;;;
-;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;;; Created: 1995/11/19
-;;; Version:
-;;; $Id: tm-gd5.el,v 4.0 1996/01/25 02:37:43 morioka Exp $
-;;; Keywords: news, MIME, multimedia, multilingual, encoded-word
-;;;
-;;; This file is part of tm (Tools for MIME).
-;;;
-;;; This program is free software; you can redistribute it and/or
-;;; modify it under the terms of the GNU General Public License as
-;;; published by the Free Software Foundation; either version 2, or
-;;; (at your option) any later version.
-;;;
-;;; This program is distributed in the hope that it will be useful,
-;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with This program. If not, write to the Free Software
-;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-;;;
-;;; Code:
-
-(cond ((not (boundp 'nnheader-encoded-words-decoding))
- (require 'tm-ew-d)
-
- (defun tm-gnus/decode-summary-from-and-subjects ()
- (mapcar (lambda (header)
- (let ((from (mail-header-from header))
- (subj (mail-header-subject header))
- )
- (mail-header-set-from
- header
- (if from
- (mime-eword/decode-string from)
- ""))
- (mail-header-set-subject
- header
- (if subj
- (mime-eword/decode-string
- (code-convert-string
- subj mime/default-coding-system *internal*))
- ""))
- ))
- gnus-newsgroup-headers))
-
- (add-hook 'gnus-select-group-hook
- (function tm-gnus/decode-summary-from-and-subjects))
- ))
-
-
-(if (boundp 'MULE)
- (progn
- (define-service-coding-system gnus-nntp-service nil *noconv*)
- (if (and (boundp 'nntp-server-process)
- (processp nntp-server-process)
- )
- (set-process-coding-system nntp-server-process *noconv* *noconv*)
- )
-
- (or (fboundp 'tm-gnus/original-request-article)
- (fset 'tm-gnus/original-request-article
- (symbol-function 'gnus-request-article))
- )
-
- (defun gnus-request-article (article group &optional buffer)
- (let ((file-coding-system-for-read *noconv*))
- (tm-gnus/original-request-article article group buffer)
- ))
- ))
-
-(fset 'tm-gnus/code-convert-region-to-emacs
- (symbol-function 'mime/code-convert-region-to-emacs))
-
-(defun tm-gnus/content-header-filter ()
- (goto-char (point-min))
- (mime-preview/cut-header)
- (tm-gnus/code-convert-region-to-emacs (point-min)(point-max)
- mime/default-coding-system)
- (mime/decode-message-header)
- )
-
-
-;;; @ end
-;;;
-
-(provide 'tm-gd5)
-
-;;; tm-gd5.el ends here