(mime-charset-regexp): Updated for RFC2231.
authorshuhei <shuhei>
Sat, 28 Apr 2001 22:55:34 +0000 (22:55 +0000)
committershuhei <shuhei>
Sat, 28 Apr 2001 22:55:34 +0000 (22:55 +0000)
mime-def.el

index a77f014..682d445 100644 (file)
@@ -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)