#
-# $Id: Makefile,v 2.0 1995/03/26 16:27:41 morioka Exp morioka $
+# $Id: Makefile,v 3.0 1995/04/17 19:06:08 morioka Exp morioka $
#
# Please specify emacs executables:
tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/*.el \
tl/README.eng tl/Makefile tl/Makefile.bc tl/*.el tl/doc/*.texi
-TARFILE = tm6.11.tar
+TARFILE = tm6.14.tar
nemacs:
orig19:
make -f Makefile.bc all \
EMACS=$(ORIG19) EMACS_TYPE=orig TLSRCDIR=$(TLSRCDIR)
-
+ (cd gnus; make orig19)
+ (cd mh-e; make orig19)
+
install-orig19: orig19
make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=orig
+ (cd gnus; make install-19)
+ (cd mh-e; make install-19)
mule2:
make -f Makefile.bc all \
EMACS=$(MULE2) EMACS_TYPE=mule TLSRCDIR=$(TLSRCDIR)
+ (cd gnus; make mule2)
+ (cd mh-e; make mule2)
install-mule2: mule2
make -f Makefile.bc install TMDIR=$(TMDIR19) EMACS_TYPE=mule
+ (cd gnus; make install-19)
+ (cd mh-e; make install-19)
all: $(UTILS) $(DVI)
;;; by MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; and OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
;;; modified by MORITA Masahiro <hiro@isl.ntt.JP>
-;;; and MORIOKA Tomohiko
-;;;
+;;; MORIOKA Tomohiko,
+;;; Kazushi (Jam) MARUKAWA <kazusi-m@is.aist-nara.ac.jp>,
+;;; OKABE Yasuo,
+;;; and Shuhei KOBAYASHI <shuhei@cmpt01.phys.tohoku.ac.jp>
(provide 'tm-comp)
(require 'tm-misc)
;;;
(defconst mime/composer-RCS-ID
- "$Id: tm-comp.el,v 3.3 1994/12/16 12:54:23 morioka Exp $")
+ "$Id: tm-comp.el,v 5.1 1995/04/17 18:52:07 morioka Exp $")
(defconst mime/composer-version (get-version-string mime/composer-RCS-ID))
(file-coding-system-for-read
(if (featurep 'mule) *noconv*))
(kanji-flag nil)) ;NEmacs
- (insert-file-contents file)))
+ (let (jka-compr-compression-info-list
+ jam-zcat-filename-list)
+ (insert-file-contents file))))
(prog1
- (if (string-equal (downcase encoding) "x-uue")
+ (if (and (stringp encoding)
+ (string-equal (downcase encoding) "x-uue"))
(let ((mime-transfer-encoders
(copy-alist (cons (list "x-uue" "uuencode"
(file-name-nondirectory file))
;;; A MIME viewer for GNU Emacs
;;;
;;; by Morioka Tomohiko, 1994/07/13
+;;;
(provide 'tm-view)
;;;
(defconst mime-viewer/RCS-ID
- "$Id: tm-view.el,v 6.11 1995/03/23 09:59:10 morioka Exp $")
+ "$Id: tm-view.el,v 6.14 1995/04/12 11:52:34 morioka Exp morioka $")
(defconst mime-viewer/version (get-version-string mime-viewer/RCS-ID))
(defconst mime/viewer-version mime-viewer/version)
(string-match "show-" name)
(substring name (match-end 0))
))
+ ;; patch for mh-narrow.el
+ ;; by YAMAOKA Katsumi <yamaoka@ga.sony.co.jp>
+ (if (and (featurep 'mh-narrow)
+ (fboundp 'mh-narrow-to-page))
+ (save-excursion
+ (set-buffer mh-show-buffer)
+ (mh-narrow-to-page)))
+ ;; end of patch
)))
(mime/show-message-mode
. (lambda ()
;;; @ parser
;;;
-(defun mime-viewer/parse-message ()
+(defun mime-viewer/parse-message (&optional ctl encoding)
(make-variable-buffer-local 'mime::article/content-info)
- (setq mime::article/content-info (mime-viewer/parse))
+ (setq mime::article/content-info (mime-viewer/parse ctl encoding))
(let ((ret (mime-viewer/make-preview-buffer)))
(make-variable-buffer-local 'mime::article/preview-buffer)
(setq mime::article/preview-buffer (car ret))
ret))
-(defun mime-viewer/parse ()
+(defun mime-viewer/parse (&optional ctl encoding)
(save-excursion
(save-restriction
- (let ((ctl (progn
- (goto-char (point-min))
- (mime/Content-Type)
- ))
- (encoding (progn
- (goto-char (point-min))
- (mime/Content-Transfer-Encoding)
- ))
- )
- (let ((ctype (car ctl))
- (params (cdr ctl))
- )
- (if (stringp ctype)
- (setq ctype (downcase ctype))
- )
- (if (stringp encoding)
- (setq encoding (downcase encoding))
+ (if (null ctl)
+ (setq ctl (progn
+ (goto-char (point-min))
+ (mime/Content-Type)
+ ))
+ )
+ (if (null encoding)
+ (setq encoding (progn
+ (goto-char (point-min))
+ (mime/Content-Transfer-Encoding)
+ ))
+ )
+ (let ((ctype (car ctl))
+ (params (cdr ctl))
)
- (let ((boundary (assoc "boundary" params)))
- (search-forward "\n\n" nil t)
- (cond (boundary
- (setq boundary
- (message/strip-quoted-string (cdr boundary)))
- (mime-viewer/parse-multipart
- (match-end 0)
- (progn
- (search-forward (concat "--" boundary "--\n") nil t)
- (match-beginning 0)
- )
- boundary ctype params encoding)
- )
- ((string= ctype "message/rfc822")
- (mime::make-content-info
- (point-min) (point-max)
- ctype params encoding
- (save-excursion
- (save-restriction
- (narrow-to-region (match-end 0) (point-max))
- (list (mime-viewer/parse))
- ))
+ (if (stringp ctype)
+ (setq ctype (downcase ctype))
+ )
+ (if (stringp encoding)
+ (setq encoding (downcase encoding))
+ )
+ (let ((boundary (assoc "boundary" params)))
+ (search-forward "\n\n" nil t)
+ (cond (boundary
+ (setq boundary
+ (message/strip-quoted-string (cdr boundary)))
+ (mime-viewer/parse-multipart
+ (match-end 0)
+ (progn
+ (search-forward (concat "--" boundary "--\n") nil t)
+ (match-beginning 0)
)
- )
- (t
- (mime::make-content-info (point-min) (point-max)
- ctype params encoding nil)
- ))
- ))))))
+ boundary ctype params encoding)
+ )
+ ((string= ctype "message/rfc822")
+ (mime::make-content-info
+ (point-min) (point-max)
+ ctype params encoding
+ (save-excursion
+ (save-restriction
+ (narrow-to-region (match-end 0) (point-max))
+ (list (mime-viewer/parse))
+ ))
+ )
+ )
+ (t
+ (mime::make-content-info (point-min) (point-max)
+ ctype params encoding nil)
+ ))
+ )))))
(defun mime-viewer/parse-multipart (beg end boundary ctype params encoding)
(let ((sep (concat "^--" boundary "$"))
"\C-c\C-x" (function mime-viewer/kill-buffer))
))
-(defun mime/viewer-mode (&optional mother)
+(defun mime/viewer-mode (&optional mother ctl encoding)
"Major mode for viewing MIME message.
u Move to upper content
(erase-buffer)
(switch-to-buffer the-buf)
)))
- (let ((ret (mime-viewer/parse-message))
+ (let ((ret (mime-viewer/parse-message ctl encoding))
(mode major-mode))
(switch-to-buffer (car ret))
(setq major-mode 'mime/viewer-mode)