;;;
;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;;; Version:
-;;; $Id: tm-parse.el,v 2.4 1995/09/26 13:19:32 morioka Exp $
+;;; $Id: tm-parse.el,v 3.0 1995/10/05 11:28:40 morioka Exp $
;;; Keywords: mail, news, MIME, multimedia
;;;
;;; This file is part of tm (Tools for MIME).
;;;
-(require 'tl-header)
+(require 'tl-822)
(require 'tl-misc)
(require 'tm-def)
(let ((e (match-end 2)))
(cons
(cons (downcase (substring str (match-beginning 1) (match-end 1)))
- (message/strip-quoted-string
+ (rfc822/strip-quoted-string
(substring str (match-beginning 2) e))
)
(substring str e)
(defun mime/parse-Content-Type (str)
"Parse STR as field-body of Content-Type field. [tm-parse.el]"
- (setq str (message/unfolding-string str))
+ (setq str (rfc822/unfolding-string str))
(if (string-match mime::ctype-regexp str)
(let* ((e (match-end 0))
(ctype (downcase (substring str 0 e)))
(defun mime/Content-Type ()
"Read field-body of Content-Type field from current-buffer,
and return parsed it. [tm-parse.el]"
- (let ((str (message/get-field-body "Content-Type")))
+ (let ((str (rfc822/get-field-body "Content-Type")))
(if str
(mime/parse-Content-Type str)
)))
"Read field-body of Content-Transfer-Encoding field from
current-buffer, and return it.
If is is not found, return DEFAULT-ENCODING. [tm-parse.el]"
- (let ((str (message/get-field-body "Content-Transfer-Encoding")))
+ (let ((str (rfc822/get-field-body "Content-Transfer-Encoding")))
(if str
(downcase str)
default-encoding)
)
(let ((boundary (assoc "boundary" params)))
(cond (boundary
- (setq boundary (message/strip-quoted-string (cdr boundary)))
+ (setq boundary (rfc822/strip-quoted-string (cdr boundary)))
(mime/parse-multipart boundary ctype params encoding)
)
((string= ctype "message/rfc822")