#
-# $Id: Makefile,v 6.11 1995/06/17 18:54:23 morioka Exp morioka $
+# $Id: Makefile,v 6.12 1995/06/22 05:00:00 morioka Exp morioka $
#
# Please specify emacs executables:
CP = /bin/cp -p
UTILS = ol2 decode-b
-GOMI = $(UTILS) *.elc .lpath.el
+GOMI = $(UTILS) *.elc loadpath
FILES = tm/README.eng tm/rel-*.ol \
tm/Makefile tm/Makefile.bc tm/make-lpath tm/inst-el tm/inst-elc \
tm/*.el tm/*.c tm/methods \
tm/doc/Makefile tm/doc/*.pln tm/doc/*.ol tm/doc/*.tex tm/doc/*.texi \
tm/gnus/Makefile tm/gnus/*-path tm/gnus/mk-tgnus tm/gnus/*.el \
- tm/mh-e/Makefile tm/mh-e/Makefile.bc code-jp.ol tm/mh-e/*.el \
- tl/README.eng \
- tl/Makefile tl/Makefile.bc tl/loadpath \
- tl/*.el tl/doc/*.texi
+ tm/mh-e/Makefile tm/mh-e/Makefile.bc tm/mh-e/code-jp.ol tm/mh-e/*.el
+# tl/README.eng \
+# tl/Makefile tl/Makefile.bc tl/loadpath \
+# tl/*.el tl/doc/*.texi
-TARFILE = tm6.54.tar
+TARFILE = tm6.58.tar
lpath-nemacs:
orig19: lpath-orig19
make -f Makefile.bc all EMACS=$(ORIG19) EMACS_TYPE=orig
cd gnus; PWD=`pwd` make gnus4 EMACS=$(ORIG19)
+# cd gnus; PWD=`pwd` make dgnus EMACS=$(ORIG19)
cd mh-e; PWD=`pwd` make orig19 ORIG19=$(ORIG19)
orig19-vm: lpath-nemacs
mule2: lpath-mule2
make -f Makefile.bc all EMACS=$(MULE2) EMACS_TYPE=mule
cd gnus; PWD=`pwd` make gnus4 EMACS=$(MULE2)
+# cd gnus; PWD=`pwd` make dgnus EMACS=$(MULE2)
cd mh-e; PWD=`pwd` make mule2 MULE2=$(MULE2)
mule2-vm: lpath-nemacs
--- /dev/null
+\e$B!X\e(Btm-mh-e \e$B$G\e(B ISO-2022-JP \e$B0J30$NJ8;z\e(B code \e$B$r;H$&J}K!!Y\e(B
+by \e$B<i2,\e(B \e$BCNI'\e(B
+
+ MTA \e$B$G\e(B ISO-2022-JP \e$B$r\e(B EUC-JP \e$B$d\e(B Shift-JIS \e$B$J$I$K\e(B code \e$BJQ49$7$F$$$k>l\e(B
+\e$B9g!"\e(Btm-mh-e \e$B$N\e(B default \e$B$N@_Dj$G$OJ8;z2=$1$7$^$9!#$3$&$7$?$3$H$r9T$J$&\e(B
+\e$B$3$H$O$"$^$j4+$a$i$l$?$3$H$G$O$J$$$H;W$$$^$9$,!"$3$3$G$O$3$&$7$?4D6-$G\e(B
+tm-mh-e \e$B$r;H$&>l9g$N@_Dj$K$D$$$F@bL@$7$^$9!#\e(B
+
+
+* Mule \e$B$N>l9g\e(B
+
+ tm-mh-e \e$B$NI8=`@_Dj$G$O!"\e(Bcharset parameter \e$B$,B8:_$9$k>l9g$O$=$l$G;XDj\e(B
+\e$B$5$l$?J8;z\e(B code \e$B$K$J$j!"\e(Bcharset parameter \e$B$,B8:_$7$J$$>l9g!JHs\e(B MIME
+message \e$B$r4^$`!K$N>l9g$NJ8;z\e(B code \e$B$O\e(B *ctext* \e$B$H$J$j$^$9!#\e(B
+
+ charset \e$B$,B8:_$7$J$$>l9g$NJ8;z\e(B code \e$B$OJQ?t\e(B
+mime/default-coding-system \e$B$G;XDj$5$l$^$9!#$3$N4{DjCM$,\e(B *ctext* \e$B$G$"$j!"\e(B
+ISO-8859-1 \e$B$+\e(B ISO-2022-JP \e$B$J$I$N\e(B JUNET \e$BJ}<0$N\e(B ISO-2022 code \e$B$G$"$k$3$H\e(B
+\e$B$r4|BT$7$F$$$^$9!#\e(B
+
+ charset \e$B$,B8:_$9$k>l9g$O!"JQ?t\e(B mime/charset-coding-system-alist \e$B$K@_\e(B
+\e$BDj$5$l$?!"$=$N\e(B charset \e$B$KBP1~$9$k\e(B Mule \e$B$N\e(B coding-system \e$B$,MQ$$$i$l$^$9!#\e(B
+
+ \e$B$3$l$i$NF0:n$O4X?t\e(B tm-mh-e/code-convert-region-to-emacs \e$B$G9T$J$o$l$^\e(B
+\e$B$9!#$h$C$F!"$3$l$i$NJQ?t$*$h$S4X?t$rJQ99$9$k$3$H$K$h$C$F\e(B MTA \e$B$G\e(B code
+\e$BJQ49$5$l$?>l9g$NBP:v$r9T$J$&$3$H$,$G$-$^$9!#\e(B
+
+
+** \e$BHs\e(B MIME message \e$B$^$?$O\e(B charset \e$B$,B8:_$7$J$$>l9g$N$_$NBP:v\e(B
+
+ \e$BHs\e(B MIME message \e$B$N>l9g!"JQ?t\e(B mime/default-coding-system \e$B$KJ8;z\e(B code
+\e$B$r@_Dj$9$l$P\e(B OK \e$B$G$9!#\e(BShift-JIS \e$B$N>l9g$O\e(B
+
+ (setq mime/default-coding-system *sjis*)
+
+EUC-JP \e$B$N>l9g$O!"\e(B
+
+ (setq mime/default-coding-system *euc-japan*)
+
+\e$B$H$7$F2<$5$$!#\e(B
+
+
+** charset \e$B$,B8:_$9$k>l9g$b4^$a$?BP:v\e(B
+
+ charset \e$B$,B8:_$9$k>l9g!"JQ?t\e(B mime/charset-coding-system-alist \e$B$K\e(B
+"ISO-2022-JP" \e$B$KBP1~$9$k\e(B coding-system \e$B$r\e(B *sjis* \e$B$d\e(B *euc-japan* \e$B$KJQ$(\e(B
+\e$B$k$H$$$&$N$,#1$D$NJ}K!$G$9!#C"$7!"$3$N>l9g!"\e(Bencode \e$B$5$l$F85$NJ8;z\e(B code
+\e$B$,J]B8$5$l$F$$$k>l9g$KJ8;z2=$1$9$k$3$H$K$J$j$^$9!#\e(B
+
+ \e$B$3$N$3$H$r9MN8$9$k$H!"4X?t\e(B tm-mh-e/code-convert-region-to-emacs \e$B$r:F\e(B
+\e$BDj5A$9$k$N$,NI$$$H$$$($^$9!#$*$=$i$/!"\e(BISO-2022-JP \e$B0J30$NJ8;z\e(B code \e$B$OJ]\e(B
+\e$BB8$5$l$J$$$G$7$g$&$+$i!"0J2<$N$h$&$JDj5A$G==J,$G$7$g$&!#\e(B
+
+ (defun tm-mh-e/code-convert-region-to-emacs
+ (beg end charset &optional encoding)
+ (code-convert beg end *sjis* *internal*)
+ )
;;;
(defconst mime-viewer/RCS-ID
- "$Id: tm-view.el,v 6.54 1995/06/13 22:31:38 morioka Exp $")
+ "$Id: tm-view.el,v 6.58 1995/06/22 04:11:58 morioka Exp $")
(defconst mime-viewer/version (get-version-string mime-viewer/RCS-ID))
(defconst mime/viewer-version mime-viewer/version)
ctype
mime-viewer/content-subject-omitting-Content-Type-list))
(insert
- (format "[%s %s (%s)]\n"
- (or (assoc-value "x-part-number" params)
- (if (listp cnum)
- (mapconcat (function
- (lambda (num)
- (format "%s" (+ num 1))
- ))
- cnum ".")
- "0"))
- subj ctype))
- ))
+ (let ((access-type (assoc "access-type" params))
+ (num (or (assoc-value "x-part-number" params)
+ (if (listp cnum)
+ (mapconcat (function
+ (lambda (num)
+ (format "%s" (+ num 1))
+ ))
+ cnum ".")
+ "0"))
+ ))
+ (if access-type
+ (let ((server (assoc "server" params)))
+ (setq access-type (cdr access-type))
+ (if server
+ (format "[%s %s ([%s] %s)]\n" num subj
+ access-type (cdr server))
+ (let ((site (assoc-value "site" params))
+ (dir (assoc-value "directory" params))
+ )
+ (format "[%s %s ([%s] %s:%s)]\n" num subj
+ access-type site dir)
+ )))
+ (format "[%s %s (%s)]\n" num subj ctype)
+ )))))
(defvar mime-viewer/content-subject-function
(function mime-viewer/default-content-subject-function))
(or
(message/get-field-body "Content-Description")
(message/get-field-body "Subject")
- ))
- ""))
- )))
+ )))
+ ""))
+ ))
(defun mime-viewer/get-name (param)
(let ((str (mime-viewer/get-subject param)))
(setq obuf (concat "*Preview-" (buffer-name buf) "*"))
)
(setq pcl (mime::make-flat-content-list cinfo))
- (save-window-excursion
- (let ((bf (get-buffer obuf)))
- (switch-to-buffer obuf)
- (setq buffer-read-only nil)
- (if bf
- (erase-buffer)
- ))
- (make-variable-buffer-local 'mime::preview/article-buffer)
- (setq mime::preview/article-buffer the-buf)
- (make-variable-buffer-local 'mime::preview/original-major-mode)
- (setq mime::preview/original-major-mode mode)
- (setq major-mode 'mime/viewer-mode)
- (setq mode-name "MIME-View")
- )
+ (let ((bf (get-buffer obuf)))
+ (switch-to-buffer obuf)
+ (setq buffer-read-only nil)
+ (if bf
+ (erase-buffer)
+ ))
+ (make-variable-buffer-local 'mime::preview/article-buffer)
+ (setq mime::preview/article-buffer the-buf)
+ (make-variable-buffer-local 'mime::preview/original-major-mode)
+ (setq mime::preview/original-major-mode mode)
+ (setq major-mode 'mime/viewer-mode)
+ (setq mode-name "MIME-View")
(setq dest
(mapcar
(function
(params (mime::content-info/parameters cell))
he cnum e nb ne subj str)
(setq cnum (mime::get-point-content-number beg cinfo))
+ (switch-to-buffer the-buf)
(setq he (save-excursion
(goto-char beg)
(re-search-forward "^$" nil t)
(+ (match-end 0) 1)
))
- (save-window-excursion
- (switch-to-buffer obuf)
- (setq nb (point))
- (narrow-to-region nb nb)
- )
+ (switch-to-buffer obuf)
+ (setq nb (point))
+ (narrow-to-region nb nb)
+ (switch-to-buffer the-buf)
(if (mime-viewer/header-visible-p cnum cinfo ctype)
(progn
(setq str (buffer-substring beg he))
- (save-window-excursion
- (switch-to-buffer obuf)
- (insert str)
- (let ((f (assq
- mode
- mime-viewer/content-header-filter-alist))
- )
- (if (and f (setq f (cdr f)))
- (funcall f)
- (mime-viewer/default-content-header-filter)
+ (switch-to-buffer obuf)
+ (insert str)
+ (let ((f (assq
+ mode
+ mime-viewer/content-header-filter-alist))
)
- ))))
+ (if (and f (setq f (cdr f)))
+ (funcall f)
+ (mime-viewer/default-content-header-filter)
+ ))
+ (switch-to-buffer the-buf)
+ ))
(if (mime-viewer/body-visible-p cnum cinfo ctype)
(let (be)
(setq str (buffer-substring he end))
- (save-window-excursion
- (switch-to-buffer obuf)
- (save-restriction
- (setq be (point-max))
- (narrow-to-region be be)
- (insert str)
- (setq ne (point-max))
- (let ((f (or (assoc-value
- ctype
- mime-viewer/content-filter-alist)
- )))
- (if (and f (fboundp f))
- (funcall f ctype params encoding)
- (mime-viewer/default-content-filter
- cnum cinfo ctype params subj)
- ))
- (setq ne (point-max))
- ))))
- (save-window-excursion
- (switch-to-buffer obuf)
- (mime-viewer/default-content-separator
- cnum cinfo ctype params subj)
- )
- (save-window-excursion
- (switch-to-buffer obuf)
- (prog1
- (progn
- (setq subj (mime-viewer/get-subject params))
- (goto-char nb)
- (funcall mime-viewer/content-subject-function
- cnum cinfo ctype params subj)
+ (switch-to-buffer obuf)
+ (save-restriction
+ (setq be (point-max))
+ (narrow-to-region be be)
+ (insert str)
+ (setq ne (point-max))
+ (let ((f (or (assoc-value
+ ctype
+ mime-viewer/content-filter-alist)
+ )))
+ (if (and f (fboundp f))
+ (funcall f ctype params encoding)
+ (mime-viewer/default-content-filter
+ cnum cinfo ctype params subj)
+ ))
(setq ne (point-max))
- (widen)
- (mime::preview-content-info/create nb (- ne 1)
- buf cell)
)
- (goto-char ne)
- )))))
+ (switch-to-buffer the-buf)
+ ))
+ (switch-to-buffer obuf)
+ (mime-viewer/default-content-separator
+ cnum cinfo ctype params subj)
+ (prog1
+ (progn
+ (setq subj (mime-viewer/get-subject params))
+ (goto-char nb)
+ (funcall mime-viewer/content-subject-function
+ cnum cinfo ctype params subj)
+ (setq ne (point-max))
+ (widen)
+ (mime::preview-content-info/create nb (- ne 1)
+ buf cell)
+ )
+ (goto-char ne)
+ ))))
pcl))
- (switch-to-buffer obuf)
(set-buffer-modified-p nil)
(setq buffer-read-only t)
(switch-to-buffer the-buf)