annotate lisp/tm/tm-mh-e.el @ 195:a2f645c6b9f8 r20-3b24

Import from CVS: tag r20-3b24
author cvs
date Mon, 13 Aug 2007 09:59:05 +0200
parents 2d532a89d707
children
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)
195
a2f645c6b9f8 Import from CVS: tag r20-3b24
cvs
parents: 175
diff changeset
9 ;; Version: $Revision: 1.3 $
4
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
195
a2f645c6b9f8 Import from CVS: tag r20-3b24
cvs
parents: 175
diff changeset
51 "$Id: tm-mh-e.el,v 1.3 1997/09/27 16:57:47 steve Exp $")
4
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)
195
a2f645c6b9f8 Import from CVS: tag r20-3b24
cvs
parents: 175
diff changeset
76 (or show-buffer
a2f645c6b9f8 Import from CVS: tag r20-3b24
cvs
parents: 175
diff changeset
77 (setq show-buffer mh-show-buffer))
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
78 ;; Bind variables in folder buffer in case they are local
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
79 (let ((formfile mhl-formfile)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
80 (clean-message-header mh-clean-message-header)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
81 (invisible-headers mh-invisible-headers)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
82 (visible-headers mh-visible-headers)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
83 (msg-filename (mh-msg-filename msg-num))
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
84 )
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
85 (if (not (file-exists-p msg-filename))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
86 (error "Message %d does not exist" msg-num))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
87 (set-buffer show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
88 (cond ((not (equal msg-filename buffer-file-name))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
89 ;; Buffer does not yet contain message.
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
90 (mh-unvisit-file)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
91 (setq buffer-read-only nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
92 (erase-buffer)
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
93 ;; Changing contents, so this hook needs to be reinitialized.
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
94 ;; pgp.el uses this.
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
95 (if (boundp 'write-contents-hooks) ;Emacs 19
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
96 (setq write-contents-hooks nil))
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
97 (if mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
98 (let* ((aname (concat "article-" folder))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
99 (abuf (get-buffer aname))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
100 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
101 (if abuf
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
102 (progn
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
103 (set-buffer abuf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
104 (setq buffer-read-only nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
105 (erase-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
106 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
107 (setq abuf (get-buffer-create aname))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
108 (set-buffer abuf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
109 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
110 (as-binary-input-file
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
111 (insert-file-contents msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
112 ;; (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
113 (while (re-search-forward "\r$" nil t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
114 (replace-match "")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
115 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
116 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
117 (set-buffer-modified-p nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
118 (setq buffer-read-only t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
119 (setq buffer-file-name msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
120 (mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
121 (mime/viewer-mode nil nil nil
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
122 aname (concat "show-" folder))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
123 (goto-char (point-min))
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
124 (let ( (buffer-read-only nil) )
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
125 (cond (clean-message-header
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
126 (mh-clean-msg-header (point-min)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
127 invisible-headers
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
128 visible-headers)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
129 (goto-char (point-min)))
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
130 (t
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
131 (mh-start-of-uncleaned-message))))
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
132 (goto-char (point-min))
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
133 )
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
134 (progn
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
135 (if formfile
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
136 (mh-exec-lib-cmd-output "mhl" "-nobell" "-noclear"
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
137 (if (stringp formfile)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
138 (list "-form" formfile))
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
139 msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
140 (insert-file-contents msg-filename))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
141 ;; end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
142 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
143 (cond (clean-message-header
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
144 (mh-clean-msg-header (point-min)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
145 invisible-headers
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
146 visible-headers)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
147 (goto-char (point-min)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
148 (t
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
149 (mh-start-of-uncleaned-message)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
150 (if tm-mh-e/decode-encoded-word
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
151 (mime/decode-message-header)
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-buffer-modified-p nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
154 (setq buffer-read-only t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
155 (setq buffer-file-name msg-filename)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
156 (mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
157 ))
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
158 (set-buffer-modified-p nil)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
159 (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
160 (setq buffer-undo-list nil))
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
161 (set-buffer-auto-saved)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
162 ;; the parts of set-visited-file-name we want to do (no locking)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
163 (setq buffer-file-name msg-filename)
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
164 (setq buffer-backed-up nil)
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 74
diff changeset
165 (auto-save-mode 1)
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
166 (set-mark nil)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
167 (setq mode-line-buffer-identification
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
168 (list (format mh-show-buffer-mode-line-buffer-id
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
169 folder msg-num)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
170 (set-buffer folder)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
171 (setq mh-showing-with-headers nil)))))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
172
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
173 (defun tm-mh-e/view-message (&optional msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
174 "MIME decode and play this message."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
175 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
176 (if (or (null tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
177 (null (get-buffer mh-show-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
178 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
179 (set-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
180 (not (eq major-mode 'mime/viewer-mode))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
181 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
182 (let ((tm-mh-e/automatic-mime-preview t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
183 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
184 (mh-show-msg msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
185 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
186 (pop-to-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
187 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
188
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
189 (defun tm-mh-e/toggle-decoding-mode (arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
190 "Toggle MIME processing mode.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
191 With arg, turn MIME processing on if arg is positive."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
192 (interactive "P")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
193 (setq tm-mh-e/automatic-mime-preview
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
194 (if (null arg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
195 (not tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
196 arg))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
197 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
198 (set-buffer mh-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
199 (if (null tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
200 (if (and mime::preview/article-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
201 (get-buffer mime::preview/article-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
202 (kill-buffer mime::preview/article-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
203 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
204 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
205 (mh-show (mh-get-msg-num t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
206 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
207
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
208 (defun tm-mh-e/show (&optional message)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
209 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
210 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
211 (mh-show message)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
212 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
213
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
214 (defun tm-mh-e/header-display ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
215 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
216 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
217 (let ((mime-viewer/ignored-field-regexp "^:$")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
218 tm-mh-e/decode-encoded-word)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
219 (mh-header-display)
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/raw-display ()
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-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
225 (let (tm-mh-e/automatic-mime-preview
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
226 tm-mh-e/decode-encoded-word)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
227 (mh-header-display)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
228 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
229
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
230 (defun tm-mh-e/burst-multipart/digest ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
231 "Burst apart the current message, which should be a multipart/digest.
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
232 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
233 digest are inserted into the folder after that message."
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
234 (interactive)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
235 (let ((digest (mh-get-msg-num t)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
236 (mh-process-or-undo-commands mh-current-folder)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
237 (mh-set-folder-modified-p t) ; lock folder while bursting
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
238 (message "Bursting digest...")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
239 (mh-exec-cmd "mhn" "-store" mh-current-folder digest)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
240 (mh-scan-folder mh-current-folder (format "%d-last" mh-first-msg-num))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
241 (message "Bursting digest...done")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
242 ))
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 ;;; @ for tm-view
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
246 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
247
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
248 (fset 'tm-mh-e/decode-charset-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
249 (symbol-function 'mime-charset/decode-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
250
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
251 (set-alist 'mime-viewer/code-converter-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
252 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
253 (function tm-mh-e/decode-charset-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
254
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
255 (defun tm-mh-e/content-header-filter ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
256 (goto-char (point-min))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
257 (mime-preview/cut-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
258 (tm-mh-e/decode-charset-buffer default-mime-charset)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
259 (mime/decode-message-header)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
260 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
261
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
262 (set-alist 'mime-viewer/content-header-filter-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
263 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
264 (function tm-mh-e/content-header-filter))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
265
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
266 (defun tm-mh-e/quitting-method ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
267 (let ((win (get-buffer-window
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
268 mime/output-buffer-name))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
269 (buf (current-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
270 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
271 (if win
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
272 (delete-window win)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
273 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
274 (pop-to-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
275 (let ((name (buffer-name buf)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
276 (substring name 5)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
277 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
278 (if (not tm-mh-e/automatic-mime-preview)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
279 (mh-invalidate-show-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
280 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
281 (mh-show (mh-get-msg-num t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
282 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
283
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
284 (set-alist 'mime-viewer/quitting-method-alist
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 (set-alist 'mime-viewer/show-summary-method
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
288 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
289 (function tm-mh-e/quitting-method))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
290
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
291 (defun tm-mh-e/following-method (buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
292 (save-excursion
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
293 (set-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
294 (goto-char (point-max))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
295 (setq mh-show-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
296 (apply (function mh-send)
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 70
diff changeset
297 (std11-field-bodies '("From" "cc" "Subject") ""))
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
298 (setq mh-sent-from-folder buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
299 (setq mh-sent-from-msg 1)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
300 (let ((last (point)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
301 (mh-yank-cur-msg)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
302 (goto-char last)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
303 )))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
304
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
305 (set-alist 'mime-viewer/following-method-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
306 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
307 (function tm-mh-e/following-method))
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 ;;; @@ for tm-partial
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
311 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
312
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
313 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
314 'tm-partial
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
315 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
316 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
317 (set-atype 'mime/content-decoding-condition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
318 '((type . "message/partial")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
319 (method . mime-article/grab-message/partials)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
320 (major-mode . mh-show-mode)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
321 (summary-buffer-exp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
322 . (and (or (string-match "^article-\\(.+\\)$" article-buffer)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
323 (string-match "^show-\\(.+\\)$" article-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
324 (substring article-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
325 (match-beginning 1) (match-end 1))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
326 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
327 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
328 (set-alist 'tm-partial/preview-article-method-alist
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
329 'mh-show-mode
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
330 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
331 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
332 (let ((tm-mh-e/automatic-mime-preview t))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
333 (tm-mh-e/show)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
334 ))))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
335 )))
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 ;;; @ set up
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
339 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
340
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
341 (define-key mh-folder-mode-map "v" (function tm-mh-e/view-message))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
342 (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
343 (define-key mh-folder-mode-map "." (function tm-mh-e/show))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
344 (define-key mh-folder-mode-map "," (function tm-mh-e/header-display))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
345 (define-key mh-folder-mode-map "\e," (function tm-mh-e/raw-display))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
346 (define-key mh-folder-mode-map "\C-c\C-b"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
347 (function tm-mh-e/burst-multipart/digest))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
348
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
349 (defun tm-mh-e/summary-before-quit ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
350 (let ((buf (get-buffer mh-show-buffer)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
351 (if buf
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
352 (let ((the-buf (current-buffer)))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
353 (switch-to-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
354 (if (and mime::article/preview-buffer
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
355 (setq buf (get-buffer mime::article/preview-buffer))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
356 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
357 (progn
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
358 (switch-to-buffer the-buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
359 (kill-buffer buf)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
360 )
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
361 (switch-to-buffer the-buf)
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
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
365 (add-hook 'mh-before-quit-hook (function tm-mh-e/summary-before-quit))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
366
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
367
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
368 ;;; @@ for tmh-comp.el
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
369 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
370
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
371 (autoload 'tm-mh-e/edit-again "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
372 "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
373 (autoload 'tm-mh-e/extract-rejected-mail "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
374 "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
375 (autoload 'tm-mh-e/forward "tmh-comp"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
376 "Forward a message or message sequence by MIME style." t)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
377
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
378 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
379 'mime-setup
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
380 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
381 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
382 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
383 'mh-edit-again 'tm-mh-e/edit-again mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
384 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
385 'mh-extract-rejected-mail 'tm-mh-e/extract-rejected-mail
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
386 mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
387 (substitute-key-definition
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
388 'mh-forward 'tm-mh-e/forward mh-folder-mode-map)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
389
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
390 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
391 'mh-comp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
392 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
393 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
394 (require 'tmh-comp)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
395 ))
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
396 'mh-letter-mode-hook)
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
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
400 ;;; @ for BBDB
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
401 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
402
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
403 (call-after-loaded
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
404 'bbdb
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
405 (function
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
406 (lambda ()
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
407 (require 'tm-bbdb)
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
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
411 ;;; @ end
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
412 ;;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
413
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
414 (provide 'tm-mh-e)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
415
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
416 (run-hooks 'tm-mh-e-load-hook)
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
417
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
418 ;;; tm-mh-e.el ends here