2 ;;; tm-dgnus.el --- tm-gnus module for (ding) GNUS
7 (defconst tm-gnus/RCS-ID
8 "$Id: tm-dgnus.el,v 6.3 1995/05/31 04:34:43 morioka Exp $")
10 (defconst tm-gnus/version
11 (concat (get-version-string tm-gnus/RCS-ID) " (ding)"))
17 (autoload 'mime/viewer-mode "tm-view" "View MIME message." t)
18 (autoload 'mime/decode-message-header
19 "tiny-mime" "Decode MIME encoded-word." t)
20 (autoload 'mime/decode-string "tiny-mime" "Decode MIME encoded-word." t)
23 ;;; @ command functions
26 (defun tm-gnus/view-message (arg)
27 "MIME decode and play this message."
29 (let ((gnus-break-pages nil))
30 (gnus-summary-select-article t t)
32 (pop-to-buffer gnus-article-buffer t)
36 (defun tm-gnus/summary-scroll-down ()
37 "Scroll down one line current article."
39 (gnus-summary-scroll-up -1)
42 (define-key gnus-summary-mode-map "v" (function tm-gnus/view-message))
43 (define-key gnus-summary-mode-map
44 "\e\r" (function tm-gnus/summary-scroll-down))
50 (defun tm-gnus/decode-summary-from-and-subjects ()
55 (mime/decode-string (or (header-from header) ""))
59 (mime/decode-string (or (header-subject header) ""))
62 gnus-newsgroup-headers)
65 (add-hook 'gnus-select-group-hook
66 (function tm-gnus/decode-summary-from-and-subjects))
72 (setq gnus-show-mime-method
75 (let (buffer-read-only)
76 (mime/decode-message-header)
79 (setq gnus-show-mime t)