;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: mail, news, RFC 822, STD 11
-;; Version: $Id: std11.el,v 0.2 1996-08-28 12:32:17 morioka Exp $
+;; Version: $Id: std11.el,v 0.3 1996-08-28 12:41:58 morioka Exp $
;; This file is part of tl (Tiny Library).
;;; Code:
+(require 'emu)
+
+
;;; @ field
;;;
(defconst std11-next-field-head-regexp
(concat "\n" std11-field-head-regexp))
+(defun std11-field-body (name &optional boundary)
+ (save-excursion
+ (save-restriction
+ (std11-narrow-to-header)
+ (goto-char (point-min))
+ (let ((case-fold-search t))
+ (if (re-search-forward (concat "^" name ":[ \t]*") nil t)
+ (buffer-substring-no-properties (match-end 0) (std11-field-end))
+ )))))
+
(defun std11-field-end ()
(if (re-search-forward std11-next-field-head-regexp nil t)
(goto-char (match-beginning 0))