(rmail-mime-charset-pattern): Ignore format and delsp specs
authorRichard M. Stallman <rms@gnu.org>
Mon, 10 Apr 2006 03:19:09 +0000 (03:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 10 Apr 2006 03:19:09 +0000 (03:19 +0000)
while looking for charset.

lisp/ChangeLog
lisp/mail/rmail.el

index 596e92e..2adf8ad 100644 (file)
@@ -1,5 +1,8 @@
 2006-04-09  Richard Stallman  <rms@gnu.org>
 
+       * mail/rmail.el (rmail-mime-charset-pattern): Ignore format and delsp
+       specs while looking for charset.
+
        * textmodes/picture.el (picture-mode-exit): Run picture-mode-exit-hook.
 
        * play/landmark.el (lm-font-lock-face-O, lm-font-lock-face-X):
index e0fecb4..a400efc 100644 (file)
@@ -623,7 +623,9 @@ the variable `rmail-mime-feature'.")
 
 ;;;###autoload
 (defvar rmail-mime-charset-pattern
-  "^content-type:[ ]*text/plain;[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?"
+  (concat "^content-type:[ ]*text/plain;"
+         "\\(?:[ \t\n]*\\(format\\|delsp\\)=\"?[-a-z0-9]+\"?;\\)*"
+         "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?")
   "Regexp to match MIME-charset specification in a header of message.
 The first parenthesized expression should match the MIME-charset name.")