From 059a631bad387767cc457e5a3c2236fe00dabc1a Mon Sep 17 00:00:00 2001 From: shuhei Date: Sat, 28 Apr 2001 22:55:34 +0000 Subject: [PATCH] (mime-charset-regexp): Updated for RFC2231. --- mime-def.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mime-def.el b/mime-def.el index a77f014..682d445 100644 --- a/mime-def.el +++ b/mime-def.el @@ -139,10 +139,15 @@ If method is nil, this field will not be encoded." "*'%" ; introduced in RFC 2231. "]")) -(defconst mime-charset-regexp mime-token-regexp) +(defconst mime-charset-regexp + (concat "[^" mime-tspecial-char-list "\000-\040" + "*'%" ; should not include "%"? + "]+")) + ;; More precisely, length of "[A-Za-z]+" is limited to at most 8. ;; (defconst mime-language-regexp "[A-Za-z]+\\(-[A-Za-z]+\\)*") (defconst mime-language-regexp "[-A-Za-z]+") + (defconst mime-encoding-regexp mime-token-regexp) -- 1.7.10.4