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: Richard Stallman
Subject: Re: automatic MIME decoding in rmail
Date: Tue, 28 Mar 2006 14:33:54 -0500

    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.

It is an easy fix that may work in practice.

    We'd probably want something more like:

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

I don't mind installing this, but it may not be really correct,
any more than my quick fix is.

Trying to solve the problem in a fully general way could be a lot
harder, however.

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

Yes, that's what could make a fully correct solution hard.




reply via email to

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