2 ;;; tm-gd5.el --- tm-gnus module for Gnus 5.*.
4 ;;; Copyright (C) 1995 Free Software Foundation, Inc.
5 ;;; Copyright (C) 1995 MORIOKA Tomohiko
7 ;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
8 ;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
9 ;;; Created: 1995/11/19
11 ;;; $Id: tm-gd5.el,v 2.0 1995/11/21 02:51:08 morioka Exp $
12 ;;; Keywords: news, MIME, multimedia, multilingual, encoded-word
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.
30 (cond ((not (boundp 'nnheader-encoded-words-decoding))
33 (defun tm-gnus/decode-summary-from-and-subjects ()
34 (mapcar (lambda (header)
35 (let ((from (mail-header-from header))
36 (subj (mail-header-subject header))
41 (mime-eword/decode-string from)
43 (mail-header-set-subject
46 (mime-eword/decode-string subj)
49 gnus-newsgroup-headers)
52 (add-hook 'gnus-select-group-hook
53 (function tm-gnus/decode-summary-from-and-subjects))