emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: automatic MIME decoding in rmail


From: Stefan Monnier
Subject: Re: automatic MIME decoding in rmail
Date: Mon, 27 Mar 2006 18:18:23 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> !   (concat "^content-type:[ ]*text/plain;\\(?:[ \t\n]*format=[a-z]+;\\)?"
> !       "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?")

As far as I know, it's is prefectly valid to add any random number of
arbitrary non-standard args.  So "format=[a-z]+" is too restrictive.
We'd probably want something more like:

   (concat "^content-type:[ ]*text/plain;"
           "\\(?:[ \t\n]*[-a-z]+=\\(?:[^\";]+\\|\"[^\"]+\"\\);\\)*"
           "[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?")

although I can't remember the exact BNF rules for this MIME header, so it
can probably do with a bit more work.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]