annotate lisp/tm/tm-mh-e.el @ 4:b82b59fe008d r19-15b3

Import from CVS: tag r19-15b3
author cvs
date Mon, 13 Aug 2007 08:46:56 +0200
parents
children 4b173ad71786
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
1 ;;; tm-mh-e.el --- MIME extension for mh-e
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995,1996 Free Software Foundation, Inc.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
6 ;; OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
7 ;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8 ;; Created: 1993/11/21 (obsolete mh-e-mime.el)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
9 ;; Version: $Revision: 1.1.1.1 $
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
10 ;; Keywords: mail, MH, MIME, multimedia, encoded-word, multilingual
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 ;; This file is part of tm (Tools for MIME).
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 ;; This program is free software; you can redistribute it and/or
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15 ;; modify it under the terms of the GNU General Public License as
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16 ;; published by the Free Software Foundation; either version 2, or (at
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 ;; your option) any later version.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 ;; This program is distributed in the hope that it will be useful, but
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
22 ;; General Public License for more details.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
23
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 ;; You should have received a copy of the GNU General Public License
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25 ;; along with GNU Emacs; see the file COPYING. If not, write to the
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27 ;; Boston, MA 02111-1307, USA.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 ;;; Code:
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
30
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
31 (require 'tl-str)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
32 (require 'tl-misc)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33 (require 'mh-e)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 (or (featurep 'mh-utils)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35 (require 'tm-mh-e3)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 (require 'tm-view)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 (or (fboundp 'mh-get-header-field)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40 (defalias 'mh-get-header-field 'mh-get-field)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
41 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
42 (or (boundp 'mh-temp-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
43 (defconst mh-temp-buffer " *mh-temp*")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
44 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
45
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
46
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
47 ;;; @ version
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
48 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
49
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
50 (defconst tm-mh-e/RCS-ID
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
51 "$Id: tm-mh-e.el,v 1.1.1.1 1996/12/18 03:55:32 steve Exp $")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
52
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
53 (defconst tm-mh-e/version (get-version-string tm-mh-e/RCS-ID))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
54
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
55
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
56 ;;; @ variable
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
57 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
58
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
59 (defvar tm-mh-e/automatic-mime-preview t
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
60 "*If non-nil, show MIME processed message.")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
61
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
62 (defvar tm-mh-e/decode-encoded-word t
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
63 "*If non-nil, decode encoded-word when it is not MIME preview mode.")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
64
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
65
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
66 ;;; @ functions
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
67 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
68
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
69 (defun mh-display-msg (msg-num folder &optional show-buffer mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
70 (or mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
71 (setq mode tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
72 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
73 ;; Display message NUMBER of FOLDER.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
74 ;; Sets the current buffer to the show buffer.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
75 (set-buffer folder)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
76 (or show-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
77 (setq show-buffer mh-show-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
78 ;; Bind variables in folder buffer in case they are local
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
79 (let ((msg-filename (mh-msg-filename msg-num)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
80 (if (not (file-exists-p msg-filename))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
81 (error "Message %d does not exist" msg-num))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
82 (set-buffer show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
83 (cond ((not (equal msg-filename buffer-file-name))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
84 ;; Buffer does not yet contain message.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
85 (clear-visited-file-modtime)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
86 (unlock-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
87 (setq buffer-file-name nil) ; no locking during setup
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
88 (setq buffer-read-only nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
89 (erase-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
90 (if mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
91 (let* ((aname (concat "article-" folder))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
92 (abuf (get-buffer aname))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
93 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
94 (if abuf
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
95 (progn
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
96 (set-buffer abuf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
97 (setq buffer-read-only nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
98 (erase-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
99 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
100 (setq abuf (get-buffer-create aname))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
101 (set-buffer abuf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
102 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
103 (as-binary-input-file
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
104 (insert-file-contents msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
105 ;; (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
106 (while (re-search-forward "\r$" nil t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
107 (replace-match "")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
108 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
109 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
110 (set-buffer-modified-p nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
111 (setq buffer-read-only t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
112 (setq buffer-file-name msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
113 (mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
114 (mime/viewer-mode nil nil nil
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
115 aname (concat "show-" folder))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
116 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
117 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
118 (let ((clean-message-header mh-clean-message-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
119 (invisible-headers mh-invisible-headers)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
120 (visible-headers mh-visible-headers)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
121 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
122 ;; 1995/9/21
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
123 ;; modified by ARIURA <ariura@cc.tuat.ac.jp>
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
124 ;; to support mhl.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
125 (if mhl-formfile
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
126 (mh-exec-lib-cmd-output "mhl" "-nobell" "-noclear"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
127 (if (stringp mhl-formfile)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
128 (list "-form" mhl-formfile))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
129 msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
130 (insert-file-contents msg-filename))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
131 ;; end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
132 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
133 (cond (clean-message-header
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
134 (mh-clean-msg-header (point-min)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
135 invisible-headers
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
136 visible-headers)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
137 (goto-char (point-min)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
138 (t
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
139 (mh-start-of-uncleaned-message)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
140 (if tm-mh-e/decode-encoded-word
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
141 (mime/decode-message-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
142 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
143 (set-buffer-modified-p nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
144 (setq buffer-read-only t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
145 (setq buffer-file-name msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
146 (mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
147 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
148 (or (eq buffer-undo-list t) ;don't save undo info for prev msgs
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
149 (setq buffer-undo-list nil))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
150 ;;; Added by itokon (02/19/96)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
151 (setq buffer-file-name msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
152 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
153 (set-mark nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
154 (setq mode-line-buffer-identification
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
155 (list (format mh-show-buffer-mode-line-buffer-id
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
156 folder msg-num)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
157 (set-buffer folder)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
158 (setq mh-showing-with-headers nil)))))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
159
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
160 (defun tm-mh-e/view-message (&optional msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
161 "MIME decode and play this message."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
162 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
163 (if (or (null tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
164 (null (get-buffer mh-show-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
165 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
166 (set-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
167 (not (eq major-mode 'mime/viewer-mode))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
168 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
169 (let ((tm-mh-e/automatic-mime-preview t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
170 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
171 (mh-show-msg msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
172 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
173 (pop-to-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
174 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
175
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
176 (defun tm-mh-e/toggle-decoding-mode (arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
177 "Toggle MIME processing mode.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
178 With arg, turn MIME processing on if arg is positive."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
179 (interactive "P")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
180 (setq tm-mh-e/automatic-mime-preview
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
181 (if (null arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
182 (not tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
183 arg))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
184 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
185 (set-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
186 (if (null tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
187 (if (and mime::preview/article-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
188 (get-buffer mime::preview/article-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
189 (kill-buffer mime::preview/article-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
190 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
191 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
192 (mh-show (mh-get-msg-num t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
193 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
194
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
195 (defun tm-mh-e/show (&optional message)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
196 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
197 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
198 (mh-show message)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
199 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
200
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
201 (defun tm-mh-e/header-display ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
202 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
203 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
204 (let ((mime-viewer/ignored-field-regexp "^:$")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
205 tm-mh-e/decode-encoded-word)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
206 (mh-header-display)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
207 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
208
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
209 (defun tm-mh-e/raw-display ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
210 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
211 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
212 (let (tm-mh-e/automatic-mime-preview
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
213 tm-mh-e/decode-encoded-word)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
214 (mh-header-display)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
215 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
216
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
217 (defun tm-mh-e/scroll-up-msg (&optional arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
218 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
219 (mh-page-msg (or arg 1))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
220 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
221
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
222 (defun tm-mh-e/scroll-down-msg (&optional arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
223 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
224 (mh-page-msg (- (or arg 1)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
225 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
226
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
227 (defun tm-mh-e/burst-multipart/digest ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
228 "Burst apart the current message, which should be a multipart/digest.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
229 The message is replaced by its table of contents and the letters from the
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
230 digest are inserted into the folder after that message."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
231 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
232 (let ((digest (mh-get-msg-num t)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
233 (mh-process-or-undo-commands mh-current-folder)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
234 (mh-set-folder-modified-p t) ; lock folder while bursting
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
235 (message "Bursting digest...")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
236 (mh-exec-cmd "mhn" "-store" mh-current-folder digest)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
237 (mh-scan-folder mh-current-folder (format "%d-last" mh-first-msg-num))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
238 (message "Bursting digest...done")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
239 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
240
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
241
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
242 ;;; @ for tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
243 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
244
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
245 (fset 'tm-mh-e/decode-charset-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
246 (symbol-function 'mime-charset/decode-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
247
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
248 (set-alist 'mime-viewer/code-converter-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
249 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
250 (function tm-mh-e/decode-charset-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
251
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
252 (defun tm-mh-e/content-header-filter ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
253 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
254 (mime-preview/cut-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
255 (tm-mh-e/decode-charset-buffer default-mime-charset)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
256 (mime/decode-message-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
257 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
258
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
259 (set-alist 'mime-viewer/content-header-filter-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
260 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
261 (function tm-mh-e/content-header-filter))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
262
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
263 (defun tm-mh-e/quitting-method ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
264 (let ((win (get-buffer-window
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
265 mime/output-buffer-name))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
266 (buf (current-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
267 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
268 (if win
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
269 (delete-window win)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
270 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
271 (pop-to-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
272 (let ((name (buffer-name buf)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
273 (substring name 5)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
274 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
275 (if (not tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
276 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
277 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
278 (mh-show (mh-get-msg-num t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
279 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
280
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
281 (set-alist 'mime-viewer/quitting-method-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
282 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
283 (function tm-mh-e/quitting-method))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
284 (set-alist 'mime-viewer/show-summary-method
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
285 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
286 (function tm-mh-e/quitting-method))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
287
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
288 (defun tm-mh-e/following-method (buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
289 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
290 (set-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
291 (goto-char (point-max))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
292 (setq mh-show-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
293 (apply (function mh-send)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
294 (std11-field-bodies '("To" "cc" "Subject") ""))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
295 (setq mh-sent-from-folder buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
296 (setq mh-sent-from-msg 1)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
297 (let ((last (point)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
298 (mh-yank-cur-msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
299 (goto-char last)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
300 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
301
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
302 (set-alist 'mime-viewer/following-method-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
303 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
304 (function tm-mh-e/following-method))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
305
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
306
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
307 ;;; @@ for tm-partial
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
308 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
309
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
310 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
311 'tm-partial
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
312 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
313 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
314 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
315 '((type . "message/partial")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
316 (method . mime-article/grab-message/partials)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
317 (major-mode . mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
318 (summary-buffer-exp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
319 . (and (or (string-match "^article-\\(.+\\)$" article-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
320 (string-match "^show-\\(.+\\)$" article-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
321 (substring article-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
322 (match-beginning 1) (match-end 1))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
323 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
324 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
325 (set-alist 'tm-partial/preview-article-method-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
326 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
327 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
328 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
329 (let ((tm-mh-e/automatic-mime-preview t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
330 (tm-mh-e/show)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
331 ))))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
332 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
333
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
334
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
335 ;;; @ set up
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
336 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
337
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
338 (define-key mh-folder-mode-map "v" (function tm-mh-e/view-message))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
339 (define-key mh-folder-mode-map "\et" (function tm-mh-e/toggle-decoding-mode))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
340 (define-key mh-folder-mode-map "." (function tm-mh-e/show))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
341 (define-key mh-folder-mode-map "," (function tm-mh-e/header-display))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
342 (define-key mh-folder-mode-map "\e," (function tm-mh-e/raw-display))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
343 (define-key mh-folder-mode-map "\r" (function tm-mh-e/scroll-up-msg))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
344 (define-key mh-folder-mode-map "\e\r" (function tm-mh-e/scroll-down-msg))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
345 (define-key mh-folder-mode-map "\C-c\C-b"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
346 (function tm-mh-e/burst-multipart/digest))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
347
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
348 (defun tm-mh-e/summary-before-quit ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
349 (let ((buf (get-buffer mh-show-buffer)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
350 (if buf
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
351 (let ((the-buf (current-buffer)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
352 (switch-to-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
353 (if (and mime::article/preview-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
354 (setq buf (get-buffer mime::article/preview-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
355 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
356 (progn
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
357 (switch-to-buffer the-buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
358 (kill-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
359 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
360 (switch-to-buffer the-buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
361 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
362 ))))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
363
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
364 (add-hook 'mh-before-quit-hook (function tm-mh-e/summary-before-quit))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
365
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
366
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
367 ;;; @@ for tmh-comp.el
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
368 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
369
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
370 (autoload 'tm-mh-e/edit-again "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
371 "Clean-up a draft or a message previously sent and make it resendable." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
372 (autoload 'tm-mh-e/extract-rejected-mail "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
373 "Extract a letter returned by the mail system and make it re-editable." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
374 (autoload 'tm-mh-e/forward "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
375 "Forward a message or message sequence by MIME style." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
376
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
377 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
378 'mime-setup
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
379 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
380 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
381 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
382 'mh-edit-again 'tm-mh-e/edit-again mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
383 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
384 'mh-extract-rejected-mail 'tm-mh-e/extract-rejected-mail
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
385 mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
386 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
387 'mh-forward 'tm-mh-e/forward mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
388
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
389 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
390 'mh-comp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
391 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
392 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
393 (require 'tmh-comp)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
394 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
395 'mh-letter-mode-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
396 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
397
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
398
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
399 ;;; @ for BBDB
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
400 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
401
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
402 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
403 'bbdb
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
404 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
405 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
406 (require 'tm-bbdb)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
407 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
408
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
409
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
410 ;;; @ end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
411 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
412
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
413 (provide 'tm-mh-e)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
414
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
415 (run-hooks 'tm-mh-e-load-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
416
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
417 ;;; tm-mh-e.el ends here