From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Evil Boris <evilborisnet@netscape.net>
Subject: Re: automatic MIME decoding in rmail
Date: Mon, 27 Mar 2006 18:18:23 -0500 [thread overview]
Message-ID: <jwvhd5jjx8z.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1FNJ14-0005LS-1V@fencepost.gnu.org> (Richard Stallman's message of "Sat, 25 Mar 2006 19:21:58 -0500")
> ! (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
next prev parent reply other threads:[~2006-03-27 23:18 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 [this message]
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
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=jwvhd5jjx8z.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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).