(rmail-convert-to-babyl-format): Use second group from
authorRomain Francoise <romain@orebokech.com>
Wed, 19 Apr 2006 09:55:40 +0000 (09:55 +0000)
committerRomain Francoise <romain@orebokech.com>
Wed, 19 Apr 2006 09:55:40 +0000 (09:55 +0000)
`rmail-mime-charset-pattern'.

lisp/ChangeLog
lisp/mail/rmail.el

index 22690ba..ed4d769 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-19  Romain Francoise  <romain@orebokech.com>
+
+       * mail/rmail.el (rmail-convert-to-babyl-format): Use second group
+       from `rmail-mime-charset-pattern'.
+
 2006-04-18  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * progmodes/python.el (python-mode): Fix typo.
index a400efc..faeec5a 100644 (file)
@@ -1994,7 +1994,7 @@ is non-nil if the user has supplied the password interactively.
                                           (re-search-backward
                                            rmail-mime-charset-pattern
                                            start t))))
-                                 (intern (downcase (match-string 1))))))
+                                 (intern (downcase (match-string 2))))))
                         (rmail-decode-region start (point) mime-charset)))))
               ;; Add an X-Coding-System: header if we don't have one.
               (save-excursion
@@ -2155,7 +2155,7 @@ is non-nil if the user has supplied the password interactively.
                                       (re-search-backward
                                        rmail-mime-charset-pattern
                                        start t))))
-                             (intern (downcase (match-string 1))))))
+                             (intern (downcase (match-string 2))))))
                     (rmail-decode-region start (point) mime-charset)))
               (save-excursion
                 (goto-char start)