2 ;;; $Id: tm-misc.el,v 3.0 1994/08/31 07:15:08 morioka Exp $
4 ;;; MIME utility for tm-*.el MIME user agent packages
6 ;;; by Morioka Tomohiko, 1993/11/21
10 (if (< (string-to-int emacs-version) 19)
15 (defvar mime/header-decoding-mode t "*Decode MIME header if non-nil.")
17 (defun mime/add-header-decoding-mode-to-mode-line ()
18 (or (assq 'mime/header-decoding-mode minor-mode-alist)
19 (setq minor-mode-alist
20 (cons (list 'mime/header-decoding-mode " MIME")
25 ;;; @ about rightful dividing for multi-octet string
28 (defun rightful-boundary-short-string (str width)
30 (let ((i 0) (w 0) chr (len (length str)))
33 (setq chr (elt str i))
34 (setq w (+ w (char-width chr)))
37 (setq i (+ i (char-bytes chr)))
43 ;;; @ functions to check field
45 (defun mime/exist-encoded-word-in-subject ()
47 mime/encoded-word-regexp
50 (goto-char (point-min))
51 (if (re-search-forward "^Subject:.*\\(\n\\( \\|\t\\)+.*\\)*" nil t)
52 (buffer-substring (match-beginning 0) (match-end 0))