;;; mime-def.el --- definition module about MIME -*- coding: iso-8859-4; -*-
-;; Copyright (C) 1995,96,97,98,99,2000,2001 Free Software Foundation, Inc.
+;; Copyright (C) 1995,96,97,98,99,2000,2001,2002,2003,2004,2005,2006
+;; Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <tomo@m17n.org>
;; Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Code:
(eval-when-compile (require 'luna)) ; luna-arglist-to-arguments
(eval-and-compile
- (defconst mime-library-product ["FLIM" (1 14 3) "Unebigoryòmae"]
+ (defconst mime-library-product ["FLIM" (1 14 9) "Gojò"]
"Product name, version number and code name of MIME-library package."))
(defmacro mime-product-name (product)
:type '(choice (integer :tag "Limit (bytes)")
(const :tag "Don't limit" nil)))
+(defcustom mime-header-accept-quoted-encoded-words nil
+ "*Accept encoded-words in quoted-strings."
+ :group 'mime-header
+ :type 'boolean)
+
+
;;; @@@ encoding
;;;
(defconst mime-token-regexp
(concat "[^" mime-tspecial-char-list "\000-\040]+"))
(defconst mime-attribute-char-regexp
- (concat "[^" mime-tspecial-char-list "\000-\040"
+ (concat "[^" mime-tspecial-char-list
+ "*'%" ; introduced in RFC 2231.
+ "\000-\040"
+ "]"))
+(defconst mime-non-attribute-char-regexp
+ (concat "[" mime-tspecial-char-list
"*'%" ; introduced in RFC 2231.
+ "\000-\040\177-\377" ; non-printable, non-US-ASCII.
"]"))
(defconst mime-charset-regexp
"*'%" ; should not include "%"?
"]+"))
-;; More precisely, length of "[A-Za-z]+" is limited to at most 8.
+;; More precisely, length of each "[A-Za-z]+" is limited to at most 8.
+;; See RFC 3066 "Tags for the Identification of Languages".
;; (defconst mime-language-regexp "[A-Za-z]+\\(-[A-Za-z]+\\)*")
(defconst mime-language-regexp "[-A-Za-z]+")