(rfc822/wrap-as-quoted-string): New alias.
[elisp/mu-cite.git] / tl-822.el
index a583cd0..08dac85 100644 (file)
--- a/tl-822.el
+++ b/tl-822.el
@@ -5,7 +5,7 @@
 ;; Author:   MORIOKA Tomohiko <morioka@jaist.ac.jp>
 ;; Keywords: mail, news, RFC 822
 
-;; This file is part of tl (Tiny Library).
+;; This file is part of MU (Message Utilities).
 
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License as
@@ -30,7 +30,7 @@
 
 
 (defconst rfc822/RCS-ID
-  "$Id: tl-822.el,v 7.62 1996-09-02 07:49:38 morioka Exp $")
+  "$Id: tl-822.el,v 7.66 1996-09-08 18:09:42 morioka Exp $")
 (defconst rfc822/version (get-version-string rfc822/RCS-ID))
 
 
@@ -56,9 +56,8 @@
 
 (defconst rfc822/linear-white-space-regexp "\\(\n?[ \t]\\)+")
 (defconst rfc822/quoted-pair-regexp "\\\\.")
-(defconst rfc822/non-qtext-char-list '(?\" ?\\ ?\r ?\n))
 (defconst rfc822/qtext-regexp
-  (concat "[^" (char-list-to-string rfc822/non-qtext-char-list) "]"))
+  (concat "[^" (char-list-to-string std11-non-qtext-char-list) "]"))
 (defconst rfc822/quoted-string-regexp
   (concat "\""
          (regexp-*
           )
          "\""))
 
-(defun rfc822/wrap-as-quoted-string (str)
-  "Wrap string STR as RFC 822 quoted-string. [tl-822.el]"
-  (concat "\""
-         (mapconcat (function
-                     (lambda (chr)
-                       (if (memq chr rfc822/non-qtext-char-list)
-                           (concat "\\" (char-to-string chr))
-                         (char-to-string chr)
-                         )
-                       )) str "")
-         "\""))
+(defalias 'rfc822/wrap-as-quoted-string 'std11-wrap-as-quoted-string)
 
 (defun rfc822/strip-quoted-pair (str)
   (let ((dest "")
 (defalias 'rfc822/parse-addresses      'std11-parse-addresses)
 (defalias 'rfc822/address-string       'std11-address-string)
 (defalias 'rfc822/full-name-string     'std11-full-name-string)
-
-(defun rfc822/extract-address-components (string)
-  "Extract full name and canonical address from STRING.
-Returns a list of the form (FULL-NAME CANONICAL-ADDRESS).
-If no name can be extracted, FULL-NAME will be nil. [tl-822.el]"
-  (let* ((structure (car (std11-parse-address-string string)))
-         (phrase  (rfc822/full-name-string structure))
-         (address (rfc822/address-string structure))
-         )
-    (list phrase address)
-    ))
+(defalias 'rfc822/extract-address-components
+  'std11-extract-address-components)
 
 
 ;;; @ end