X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=std11-parse.el;h=9139530cb94b3a4e2a9480639619cb4b1bf016a6;hb=9979f12f4c6e767035689fb19867f50078e9f226;hp=0c6ae32329aafefd0a1fef391fc29b4bd48e32c3;hpb=b95fcc949d6bc2d8c865cdccbf6974a4001654ab;p=elisp%2Fapel.git diff --git a/std11-parse.el b/std11-parse.el index 0c6ae32..9139530 100644 --- a/std11-parse.el +++ b/std11-parse.el @@ -4,7 +4,7 @@ ;; Author: MORIOKA Tomohiko ;; Keywords: mail, news, RFC 822, STD 11 -;; Version: $Id: std11-parse.el,v 0.17 1997-09-25 15:01:24 morioka Exp $ +;; Version: $Id: std11-parse.el,v 1.1 1998-02-04 07:21:11 morioka Exp $ ;; This file is part of MU (Message Utilities). @@ -34,9 +34,10 @@ (defconst std11-space-chars " \t\n") (defconst std11-spaces-regexp (` (, (concat "[" std11-space-chars "]+")))) -(defconst std11-special-char-list '(?\( ?\) ?< ?> ?@ +(defconst std11-special-char-list '(?\] ?\[ + ?\( ?\) ?< ?> ?@ ?, ?\; ?: ?\\ ?\" - ?. ?\[ ?\])) + ?.)) (defconst std11-atom-regexp (` (, (concat "^[^" std11-special-char-list std11-space-chars "]+")))) @@ -433,6 +434,24 @@ (nreverse dest) )))) +(defun std11-parse-msg-id (lal) + (let ((ret (std11-parse-ascii-token lal)) + < addr-spec >) + (if (and ret + (setq < (car ret)) + (string-equal (cdr (assq 'specials <)) "<") + (setq lal (cdr ret)) + (setq ret (std11-parse-addr-spec lal)) + (setq addr-spec (car ret)) + (setq lal (cdr ret)) + (setq ret (std11-parse-ascii-token lal)) + (setq > (car ret)) + (string-equal (cdr (assq 'specials >)) ">") + ) + (cons (cons 'msg-id (cdr addr-spec)) + (cdr ret)) + ))) + ;;; @ end ;;;