--- /dev/null
+Sat Nov 25 08:11:36 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm/mh-e: Version 7.30 was released.
+
+Fri Nov 24 22:57:59 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-mh-e.el:
+ (1) Function `tm-mh-e/insert-mail' was modified to apply its
+ argument to function `tm-mh-e/query-message'.
+ (2) Function `tm-mh-e/query-message' was modified to changed
+ its argument to `tm-mh-e::message' type.
+
+ * tm-mh-e.el:
+ Function `tm-mh-e/insert-message' was modified to use function
+ `tm-mh-e/insert-mail' when mh mail is inserted. (Because of
+ Mule code conversion)
+
+Fri Nov 24 21:49:48 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-mh-e.el:
+ (1) Function `tm-mh-e/insert-message' was modified for Gnus.
+ (2) function `tm-mh-e/query-message' was fixed.
+ (3) function `tm-mh-e/prompt-for-message' was fixed.
+
+ * tm-mh-e.el:
+ OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>'s patch was applied.
+ (cf. [tm-ja:1156])
--- /dev/null
+Sat Nov 25 08:11:36 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm/mh-e: Version 7.30 \e$B$r\e(B release \e$B$7$?!#\e(B
+
+Fri Nov 24 22:57:59 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-mh-e.el:
+ (1) \e$B4X?t\e(B tm-mh-e/insert-mail \e$B$N0z?t$r4X?t\e(B tm-mh-e/query-message \e$B$K\e(B
+ \e$BEO$9$h$&$K$7$?!#\e(B
+ (2) \e$B4X?t\e(B tm-mh-e/query-message \e$B$N0z?t$r\e(B tm-mh-e::message \e$B7?$H$7$?!#\e(B
+
+ * tm-mh-e.el:
+ \e$B4X?t\e(B tm-mh-e/insert-message \e$B$G\e(B mh \e$B$N\e(B mail \e$B$NA^F~$K4X?t\e(B
+ tm-mh-e/insert-mail \e$B$r;H$&$h$&$K$7$?!#!JA^F~$7$?5-;v$rJT=8Cf$KFI$a\e(B
+ \e$B$k$h$&$K$9$k$?$a!K\e(B
+
+Fri Nov 24 21:49:48 1995 Morioka Tomohiko <morioka@jaist.ac.jp>
+
+ * tm-mh-e.el:
+ (1) Gnus \e$B$G$N;HMQ$r9MN8$7$F4X?t\e(B tm-mh-e/insert-message \e$B$r=$@5$7$?!#\e(B
+ (2) \e$B4X?t\e(B tm-mh-e/query-message \e$B$NIT6q9g$r=$@5$7$?!#\e(B
+ (3) \e$B4X?t\e(B tm-mh-e/prompt-for-message \e$B$NIT6q9g$r=$@5$7$?!#\e(B
+
+ * tm-mh-e.el:
+ [tm-ja:1156] \e$B$G$N!"2,It\e(B \e$B<wCK\e(B <okabe@kudpc.kyoto-u.ac.jp> \e$B$5$s$N\e(B
+ patch \e$B$rEv$F$?!#\e(B
;;; modified by YAMAOKA Katsumi <yamaoka@ga.sony.co.jp>
;;; Maintainer: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Created: 1993/11/21 (obsolete mh-e-mime.el)
-;;; Version: $Revision: 7.26 $
+;;; Version: $Revision: 7.30 $
;;; Keywords: mail, MH, MIME, multimedia, encoded-word, multilingual
;;;
;;; This file is part of tm (Tools for MIME).
;;;
(defconst tm-mh-e/RCS-ID
- "$Id: tm-mh-e.el,v 7.26 1995/11/21 08:55:01 morioka Exp $")
+ "$Id: tm-mh-e.el,v 7.30 1995/11/24 22:57:59 morioka Exp $")
(defconst tm-mh-e/version (get-version-string tm-mh-e/RCS-ID))
(if folder-buf
(save-excursion
(set-buffer folder-buf)
- (let ((show-buffer (get-buffer mh-show-buffer)))
- (if show-buffer
- (file-name-nondirectory
- (buffer-file-name show-buffer))
- ))))))
+ (let* ((show-buffer (get-buffer mh-show-buffer))
+ (show-buffer-file-name
+ (buffer-file-name show-buffer)))
+ (if show-buffer-file-name
+ (file-name-nondirectory show-buffer-file-name)))))))
(if (or (null default)
(not (string-match "^[0-9]+$" default)))
(setq default
- (if (string= folder mh-sent-from-folder)
+ (if (and (string= folder mh-sent-from-folder)
+ mh-sent-from-msg)
(int-to-string mh-sent-from-msg)
(car files)
)))
) nil nil default)
))
-(defun tm-mh-e/query-message ()
- (let* ((folder (mh-prompt-for-folder
- "Message from" (or mh-sent-from-folder "+inbox") nil))
- (number (tm-mh-e/prompt-for-message "Message number: " folder))
- )
+(defun tm-mh-e/query-message (&optional message)
+ (let (folder number)
+ (if message
+ (progn
+ (setq folder (tm-mh-e::message/folder message))
+ (setq number (tm-mh-e::message/number message))
+ ))
+ (or (stringp folder)
+ (setq folder (mh-prompt-for-folder
+ "Message from"
+ (if (and (stringp mh-sent-from-folder)
+ (string-match "^\\+" mh-sent-from-folder))
+ mh-sent-from-folder "+inbox")
+ nil)))
+ (setq number
+ (if (numberp number)
+ (number-to-string number)
+ (tm-mh-e/prompt-for-message "Message number: " folder)
+ ))
(tm-mh-e::make-message folder number)
))
;;; end
;;; end
(defun tm-mh-e/insert-message (&optional message)
- (if (null message)
- (setq message (tm-mh-e/query-message))
- )
+ ;; always ignore message
+ (let ((article-buffer
+ (if (not (and (stringp mh-sent-from-folder)
+ (numberp mh-sent-from-msg)
+ ))
+ (cond ((and (boundp 'gnus-original-article-buffer)
+ (bufferp mh-sent-from-folder)
+ (get-buffer gnus-original-article-buffer)
+ )
+ gnus-original-article-buffer)
+ ((and (boundp 'gnus-article-buffer)
+ (get-buffer gnus-article-buffer)
+ (bufferp mh-sent-from-msg)
+ )
+ (save-excursion
+ (set-buffer gnus-article-buffer)
+ (if (eq major-mode 'mime/viewer-mode)
+ mime::preview/article-buffer
+ (current-buffer)
+ )))
+ ))))
+ (if (null article-buffer)
+ (tm-mh-e/insert-mail
+ (tm-mh-e::make-message mh-sent-from-folder mh-sent-from-msg)
+ )
+ (insert-buffer article-buffer)
+ (mime-editor/inserted-message-filter)
+ )
+ ))
+
+(defun tm-mh-e/insert-mail (&optional message)
+ (setq message (tm-mh-e/query-message message))
(insert-file (tm-mh-e::message/file-name message))
(mime-editor/inserted-message-filter)
)
'mh-letter-mode (function tm-mh-e/insert-message))
(set-alist
'mime-editor/mail-inserter-alist
- 'mh-letter-mode (function tm-mh-e/insert-message))
+ 'mh-letter-mode (function tm-mh-e/insert-mail))
(set-alist
'mime-editor/mail-inserter-alist
- 'news-reply-mode (function tm-mh-e/insert-message))
+ 'news-reply-mode (function tm-mh-e/insert-mail))
)))
(call-after-loaded