From 73ef6632978b3786c6286390d57f20820ee7b7c4 Mon Sep 17 00:00:00 2001 From: morioka Date: Sat, 11 Nov 1995 12:48:59 +0000 Subject: [PATCH] =?utf8?q?tm-edit.el=20=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF?= =?utf8?q?=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=20rfc822/get-header-string-excep?= =?utf8?q?t=20=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD?= =?utf8?q?=EF=BF=BD=EF=BF=BD=EF=BF=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tl-822.el | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/tl-822.el b/tl-822.el index 1952c83..2821596 100644 --- a/tl-822.el +++ b/tl-822.el @@ -15,7 +15,7 @@ (defconst rfc822/RCS-ID - "$Id: tl-822.el,v 4.0 1995-10-05 13:22:22 morioka Exp $") + "$Id: tl-822.el,v 5.0 1995-11-11 12:48:59 morioka Exp $") (defconst rfc822/version (get-version-string rfc822/RCS-ID)) @@ -57,6 +57,33 @@ )))) +;;; @ header +;;; + +(defun rfc822/get-header-string-except (pat boundary) + (let ((case-fold-search t)) + (save-excursion + (save-restriction + (narrow-to-region (goto-char (point-min)) + (progn + (re-search-forward + (concat "^\\(" (regexp-quote boundary) "\\)?$") + nil t) + (match-beginning 0) + )) + (goto-char (point-min)) + (let (field header) + (while (re-search-forward rfc822/field-top-regexp nil t) + (setq field (buffer-substring (match-beginning 0) + (rfc822/field-end) + )) + (if (not (string-match pat field)) + (setq header (concat header field "\n")) + )) + header) + )))) + + ;;; @ quoting ;;; -- 1.7.10.4