all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* automatic MIME decoding in rmail
@ 2006-03-23 16:32 Evil Boris
  2006-03-26  0:21 ` Richard Stallman
  0 siblings, 1 reply; 9+ messages in thread
From: Evil Boris @ 2006-03-23 16:32 UTC (permalink / raw)



I have been caught several times by the following.  Email comes with
the content-type message header

---------
Content-Type: text/plain;
        format=flowed;
        charset="koi8-r";
        reply-type=original
---------

Notice that CHARSET specifier does not immediately follow
"text/plain"---there is a FORMAT specification intervening in between.
For example hotmail.com sends such messages and several other
services.  (I have not been able to determine from reading the spec if
this is allowed by the standard.  Not sure how relevant that is
though.)  Emacs does not decode the charset correctly correct, because
of the following:

(defvar rmail-mime-charset-pattern
  "^content-type:[ ]*text/plain;[ \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.")

I guess the fix is to replace [ \t\n]* with a pattern matching any
number of intervening specifications.  Not sure what form they should
take, so will leave that for an expert.

Thank,
        --Boris

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-16 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-23 16:32 automatic MIME decoding in rmail Evil Boris
2006-03-26  0:21 ` Richard Stallman
2006-03-27 23:18   ` Stefan Monnier
2006-03-28 19:33     ` Richard Stallman
2006-04-09 21:32       ` Evil Boris
2006-04-10  3:26         ` Richard Stallman
2006-05-06  0:05           ` Evil Boris
2006-05-06 23:36             ` Richard Stallman
2006-05-16 14:55               ` Evil Boris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.