unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org, evilborisnet@netscape.net
Subject: Re: automatic MIME decoding in rmail
Date: Tue, 28 Mar 2006 14:33:54 -0500	[thread overview]
Message-ID: <E1FOJww-0005rM-FS@fencepost.gnu.org> (raw)
In-Reply-To: <jwvhd5jjx8z.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Mon, 27 Mar 2006 18:18:23 -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	other threads:[~2006-03-28 19:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FOJww-0005rM-FS@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=evilborisnet@netscape.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).