(rfc822/get-field-body): New alias for `std11-field-body'; moved to
authormorioka <morioka>
Wed, 28 Aug 1996 12:40:28 +0000 (12:40 +0000)
committermorioka <morioka>
Wed, 28 Aug 1996 12:40:28 +0000 (12:40 +0000)
std11.el.

tl-822.el

index a530c6c..ff2a64c 100644 (file)
--- a/tl-822.el
+++ b/tl-822.el
@@ -30,7 +30,7 @@
 
 
 (defconst rfc822/RCS-ID
-  "$Id: tl-822.el,v 7.36 1996-08-28 12:28:54 morioka Exp $")
+  "$Id: tl-822.el,v 7.37 1996-08-28 12:40:28 morioka Exp $")
 (defconst rfc822/version (get-version-string rfc822/RCS-ID))
 
 
 
 (defalias `rfc822/field-end 'std11-field-end)
 
-(defun rfc822/get-field-body (name &optional boundary)
-  (let ((case-fold-search t))
-    (save-excursion
-      (save-restriction
-       (rfc822/narrow-to-header boundary)
-       (goto-char (point-min))
-       (if (re-search-forward (concat "^" name ":[ \t]*") nil t)
-           (buffer-substring-no-properties
-            (match-end 0)
-            (rfc822/field-end)
-            ))
-       ))))
+(defalias 'rfc822/get-field-body 'std11-field-body)
 
 (defun rfc822/get-field-bodies (field-names &optional default-value boundary)
   (let ((case-fold-search t))