From 0736daff192c99532171587b6f81ee0304a9e06b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 7 Oct 2006 13:30:41 +0000 Subject: [PATCH] (rmail-mime-charset-pattern): Allow a TAB between "Content-Type" and "text/plain". --- lisp/ChangeLog | 2 ++ lisp/mail/rmail.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6093b1c907b..1360dc3617c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -3,6 +3,8 @@ * mail/rmail.el (rmail-redecode-body): If the old encoding is `undecided', call find-coding-systems-region to find a proper non-trivial encoding. + (rmail-mime-charset-pattern): Allow a TAB between "Content-Type" + and "text/plain". 2006-10-07 Kevin Ryde diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index b196d906f81..68dfd9f7ca4 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -623,7 +623,7 @@ the variable `rmail-mime-feature'.") ;;;###autoload (defvar rmail-mime-charset-pattern - (concat "^content-type:[ ]*text/plain;" + (concat "^content-type:[ \t]*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. -- 2.39.2