2 ;;; $Id: tm-misc.el,v 2.1 1994/08/01 05:24:09 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)
16 (defvar mime/header-decoding-mode t "*Decode MIME header if non-nil.")
18 (defun mime/add-header-decoding-mode-to-mode-line ()
19 (or (assq 'mime/header-decoding-mode minor-mode-alist)
20 (setq minor-mode-alist
21 (cons (list 'mime/header-decoding-mode " MIME")
25 (defvar mime/body-decoding-mode nil "MIME body decoding mode")
26 (defvar mime/body-decoding-method (function mime/decode-body)
27 "MIME body decoding method to play")
30 ;;; @ about rightful dividing for multi-octet string
33 (defun rightful-boundary-short-string (str width)
35 (let ((i 0) (w 0) chr (len (length str)))
38 (setq chr (elt str i))
39 (setq w (+ w (char-width chr)))
42 (setq i (+ i (char-bytes chr)))
47 ;;; @ functions to check field
49 (defun mime/exist-encoded-word-in-subject ()
51 mime/encoded-word-regexp
54 (goto-char (point-min))
55 (if (re-search-forward "^Subject:.*\\(\n\\( \\|\t\\)+.*\\)*" nil t)
56 (buffer-substring (match-beginning 0) (match-end 0))