FILES = README.eng Makefile *.el *.c methods \
doc/Makefile doc/*.pln doc/*.ol doc/*.tex
-TARFILE = tm5.9.1.tar
+TARFILE = tm5.12.tar
all: $(UTILS) $(DVI)
-;;
-;; A multilingual MIME message header encoder/decoder.
-;; by Morioka Tomohiko (morioka@jaist.ac.jp)
-;;
-;; original MIME decoder is
-;; mime.el,v 1.5 1992/07/18 07:52:08 by Enami Tsugutomo
-;;
+;;;
+;;; A multilingual MIME message header encoder/decoder.
+;;; by Morioka Tomohiko (morioka@jaist.ac.jp)
+;;;
+;;; original MIME decoder is
+;;; mime.el,v 1.5 1992/07/18 07:52:08 by Enami Tsugutomo
+;;;
(provide 'tiny-mime)
-(defconst mime/RCS-ID
- "$Id: tiny-mime.el,v 4.8 1994/08/11 14:43:54 morioka Exp $")
-
-(defconst mime/tiny-mime-version
- (and (string-match "[0-9][0-9.]*" mime/RCS-ID)
- (substring mime/RCS-ID (match-beginning 0)(match-end 0))
- ))
+;;; @ require modules
+;;;
(require 'tl-header)
-
+(require 'tl-str)
(if (not (fboundp 'member))
(require 'tl-18)
)
+
+;;; @ version
+;;;
+(defconst mime/RCS-ID
+ "$Id: tiny-mime.el,v 5.1 1994/10/17 07:40:33 morioka Exp $")
+
+(defconst mime/tiny-mime-version (get-version-string mime/RCS-ID))
+
+
;;; @ MIME encoded-word definition
;;;
;;;
-;;; $Id: tl-str.el,v 1.7 1994/09/25 21:33:52 morioka Exp $
+;;; $Id: tl-str.el,v 3.0 1994/10/17 07:16:25 morioka Exp $
;;;
(provide 'tl-str)
+
+;;; @@ about rightful dividing for multi-octet string
+;;;
+;; by mol. 1993/9/26
+(defun rightful-boundary-short-string (str width)
+ (substring str 0
+ (let ((i 0) (w 0) chr (len (length str)))
+ (catch 'label
+ (while (< i len)
+ (setq chr (elt str i))
+ (setq w (+ w (char-width chr)))
+ (if (> w width)
+ (throw 'label i))
+ (setq i (+ i (char-bytes chr)))
+ )
+ i))
+ ))
+
+
+;;; @@ RCS version
+;;;
+
+(defun get-version-string (id)
+ (and (string-match "[0-9][0-9.]*" id)
+ (substring id (match-beginning 0)(match-end 0))
+ ))
+
+
+;;; @@ file name
+;;;
+(defun replace-as-filename (str)
+ (let ((dest "")
+ (i 0)(len (length str))
+ chr)
+ (while (< i len)
+ (setq chr (elt str i))
+ (if (or (and (<= ?+ chr)(<= chr ?.))
+ (and (<= ?0 chr)(<= chr ?:))
+ (= chr ?=)
+ (and (<= ?@ chr)(<= chr ?\[))
+ (and (<= ?\] chr)(<= chr ?_))
+ (and (<= ?a chr)(<= chr ?{))
+ (and (<= ?} chr)(<= chr ?~))
+ )
+ (setq dest (concat dest
+ (char-to-string chr)))
+ )
+ (setq i (+ i 1))
+ )
+ dest))
+
+
+;;; @@ message editing utilities
+;;;
+
(defun fill-cited-region (beg end)
(interactive "*r")
(save-excursion
(replace-match new)
))
-(defun replace-as-filename (str)
- (let ((dest "")
- (i 0)(len (length str))
- chr)
- (while (< i len)
- (setq chr (elt str i))
- (if (or (and (<= ?+ chr)(<= chr ?.))
- (and (<= ?0 chr)(<= chr ?:))
- (= chr ?=)
- (and (<= ?@ chr)(<= chr ?\[))
- (and (<= ?\] chr)(<= chr ?_))
- (and (<= ?a chr)(<= chr ?{))
- (and (<= ?} chr)(<= chr ?~))
- )
- (setq dest (concat dest
- (char-to-string chr)))
- )
- (setq i (+ i 1))
- )
- dest))
+
+;;; @@ jinn compatible functions
+;;;
(defun symbol-concat (a b)
(intern (concat
;;;
-;;; $Id: tm-comp.el,v 1.2 1994/09/26 12:37:03 morioka Exp $
+;;; $Id: tm-comp.el,v 2.0 1994/10/17 06:55:56 morioka Exp $
;;;
(provide 'tm-comp)
+(require 'tm-misc)
(require 'tl-header)
(require 'mail-utils)
-(defvar mime/tmp-dir (or (getenv "TM_TMPDIR") "/tmp/"))
-
(defvar mime/message-max-length 1000)
+
(defvar mime/message-sender-alist
'((mail-mode . sendmail-send-it)
(mh-letter-mode . (lambda ()
))
(news-reply-mode . gnus-inews-article)
))
+
(defvar mime/window-config-alist
'((mail-mode . nil)
(mh-letter-mode . mh-previous-window-config)
;;;
-;;; $Id: tm-gnus.el,v 3.0 1994/08/28 16:22:16 morioka Exp $
-;;;
;;; A MIME extension for GNUS
;;;
;;; by Morioka Tomohiko, 1993/11/20
+;;;
(provide 'tm-gnus)
+
+;;; @ require modules
+;;;
(require 'tm-misc)
+(require 'tl-str)
(require 'gnus)
+;;; @ version
+;;;
+(defconst tm-gnus/RCS-ID
+ "$Id: tm-gnus.el,v 5.0 1994/10/17 07:18:44 morioka Exp $")
+
+(defconst tm-gnus/version (get-version-string tm-gnus/RCS-ID))
+
+
;;; @ variables
;;;
(defvar tm-gnus/startup-hook nil)
(provide 'tm-mh-e)
-;;; @ version
-;;;
-(defconst tm-mh-e/RCS-ID
- "$Id: tm-mh-e.el,v 5.0 1994/09/25 21:28:29 morioka Exp $")
-
-(defconst tm-mh-e/version
- (and (string-match "[0-9][0-9.]*" tm-mh-e/RCS-ID)
- (substring tm-mh-e/RCS-ID (match-beginning 0)(match-end 0))
- ))
-
;;; @ require modules
;;;
+(require 'tl-str)
(require 'tm-misc)
(require 'mh-e)
(if (not (boundp 'mh-e-version))
(autoload 'mime/viewer-mode "tm-view" "View MIME message." t)
+;;; @ version
+;;;
+(defconst tm-mh-e/RCS-ID
+ "$Id: tm-mh-e.el,v 5.1 1994/10/17 07:26:36 morioka Exp $")
+
+(defconst tm-mh-e/version (get-version-string tm-mh-e/RCS-ID))
+
+
;;; @ MIME header decoding mode
;;;
(defun tm-mh-e/toggle-header-decoding-mode (arg)
;;;
-;;; $Id: tm-misc.el,v 3.0 1994/08/31 07:15:08 morioka Exp $
+;;; $Id: tm-misc.el,v 5.0 1994/10/17 06:55:23 morioka Exp $
;;;
;;; MIME utility for tm-*.el MIME user agent packages
;;;
)
(require 'tiny-mime)
+(defvar mime/tmp-dir (or (getenv "TM_TMPDIR") "/tmp/"))
+
(defvar mime/header-decoding-mode t "*Decode MIME header if non-nil.")
(defun mime/add-header-decoding-mode-to-mode-line ()
))
-;;; @ about rightful dividing for multi-octet string
-;;;
-;; by mol. 1993/9/26
-(defun rightful-boundary-short-string (str width)
- (substring str 0
- (let ((i 0) (w 0) chr (len (length str)))
- (catch 'label
- (while (< i len)
- (setq chr (elt str i))
- (setq w (+ w (char-width chr)))
- (if (> w width)
- (throw 'label i))
- (setq i (+ i (char-bytes chr)))
- )
- i))
- ))
-
-
;;; @ functions to check field
;;;
(defun mime/exist-encoded-word-in-subject ()
;;;
-;;; $Id: tm-rmail.el,v 5.0 1994/09/25 21:26:05 morioka Exp $
+;;; $Id: tm-rmail.el,v 5.1 1994/10/17 06:31:29 morioka Exp $
;;;
(provide 'tm-rmail)
(add-hook 'rmail-mode-hook
(function
(lambda ()
- (local-set-key "v" 'mime/view-mode)
+ (local-set-key "v" 'mime/viewer-mode)
)))
(add-hook 'rmail-summary-mode-hook
(provide 'tm-view)
-;;; @ version
-;;;
-
-(defconst mime/viewer-RCS-ID
- "$Id: tm-view.el,v 5.9 1994/10/11 15:14:07 morioka Exp $")
-
-(defconst mime/viewer-version
- (and (string-match "[0-9][0-9.]*" mime/viewer-RCS-ID)
- (substring mime/viewer-RCS-ID (match-beginning 0)(match-end 0))
- ))
-
-
;;; @ require modules
;;;
(require 'tl-list)
(require 'tl-header)
(require 'tiny-mime)
+(require 'tm-misc)
+
+
+;;; @ version
+;;;
+
+(defconst mime/viewer-RCS-ID
+ "$Id: tm-view.el,v 5.12 1994/10/17 07:28:34 morioka Exp $")
+
+(defconst mime/viewer-version (get-version-string mime/viewer-RCS-ID))
;;; @ constants
)))
))
-(defvar mime/tmp-dir "/tmp/")
-
(defvar mime/use-internal-decoder nil)
(defvar mime/body-decoding-mode "play" "MIME body decoding mode")
(switch-to-buffer obuf)
(erase-buffer)
))
- (let ((r fcl) cell cid ctype beg end e nb ne subj dest)
+ (let ((r fcl) cell cid ctype beg end e nb ne subj dest str)
(while r
(setq cell (car r))
(setq beg (car cell))