unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Francesco Potorti` <pot@gnu.org>
Cc: evilborisnet@netscape.net, monnier@IRO.UMontreal.CA, rms@gnu.org,
	emacs-devel@gnu.org
Subject: Re: Rmail-mbox branch
Date: Mon, 08 Sep 2008 18:53:41 +0900	[thread overview]
Message-ID: <87myij0xqy.fsf@xemacs.org> (raw)
In-Reply-To: <E1KccEH-0006SN-Om@tucano.isti.cnr.it>

Francesco Potorti` writes:

 > >[3]  For practical purposes we can assume that message bodies which are
 > >'text/plain; charset=XYZ' for XYZ=iso-8859-1, XYZ=iso-8859-15, and
 > >XYZ=utf-8 will generally "just work", too.  But it's easy to imagine
 > >situations where a MIME-conforming MUA might render such incorrectly
 > >without a MIME Content-Type header to guide it, such as a Latin-2-
 > >using locale.
 > 
 > One thing that I find useful is searching mbox files using standard Unix
 > text tools.  This is not possible for base-64 coded messages.  However,
 > I can edit an mbox file, convert its text from base-64 and edit the MIME
 > header appropriately, thus still obtaining an RFC-compliant message that
 > is searchable and that can be displayed without further decoding (it is
 > smaller, too).  I do this routinely for the three charsets you mentioned
 > above, but it should work for any charset.  I suggest that this
 > conversion be made automatically whenever possible and sensible.

This is always trivially possible in Emacs.[1]  The key, as you
mention, is fixing the Content-Transfer-Encoding field to '8bit' after
decoding, and (perhaps) recoding from a legacy charset to UTF-8, in
which case you'll need to fix the Content-Type field's 'charset'
parameter, too.

However, whether it is "sensible" depends on the user's environment,
including what other MUAs and text-processing tools you have
available.  I recommend rather making this a folder-specific user
setting, defaulting to 'ask.  You yourself could set it to 'always
since you have favorable experience with it.  Or perhaps the values
should be something like 'never, 'ask, 'always-content-type (where
this uses the value specified in the 'charset' parameter of the
Content-Type field), and 'always-utf8.

Footnotes: 
[1]  Of course you have to know how to use Mule, which is not yet
fully diffused into the community.  Once you've got that, though, it's
trivial.  Borrow the BASE64 and QP decoders from Gnus, and use
de/en-code-coding-region to fix up the MIME charset.





  reply	other threads:[~2008-09-08  9:53 UTC|newest]

Thread overview: 89+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 18:05 Rmail-mbox branch Chong Yidong
2008-06-30 12:20 ` Paul Michael Reilly
2008-06-30 13:06   ` Chong Yidong
2008-06-30 13:50     ` Paul Michael Reilly
2008-06-30 13:59       ` Miles Bader
2008-06-30 15:57         ` Stefan Monnier
     [not found]         ` <4868F9F0.2060408@pajato.com>
2008-06-30 18:29           ` Miles Bader
2008-06-30 16:03   ` Stefan Monnier
2008-06-30 17:48     ` Paul Michael Reilly
2008-07-03 21:56       ` Stefan Monnier
2008-08-18  5:15     ` Paul Michael Reilly
2008-08-18  6:01       ` Miles Bader
2008-08-18  6:05         ` Paul Michael Reilly
2008-08-18  6:52           ` Miles Bader
2008-08-18 12:18             ` Paul Michael Reilly
2008-08-29  7:04               ` Glenn Morris
2008-08-31  4:27                 ` Paul Michael Reilly
2008-08-31 18:50                   ` Chong Yidong
2008-08-31 19:15                     ` Evil Boris
2008-09-01  3:09                       ` Eli Zaretskii
2008-09-01 11:46                         ` Evil Boris
2008-09-01 19:19                           ` Eli Zaretskii
2008-09-01 19:57                             ` Stefan Monnier
2008-09-02  3:21                               ` Eli Zaretskii
2008-09-01 23:46                             ` Evil Boris
2008-09-02  2:38                               ` Evil Boris
2008-09-02  3:32                                 ` Eli Zaretskii
2008-09-02 11:53                                   ` Evil Boris
2008-09-03 20:12                                     ` Paul Michael Reilly
2008-09-02 14:13                                 ` Richard M. Stallman
2008-09-03  2:46                                   ` Stephen J. Turnbull
2008-09-03  4:41                                     ` Richard M. Stallman
2008-09-03  6:28                                       ` Stephen J. Turnbull
2008-09-04  0:10                                         ` Richard M. Stallman
2008-09-04  2:26                                           ` Stephen J. Turnbull
2008-09-04  7:03                                             ` Paul Michael Reilly
2008-09-04  8:44                                               ` Stephen J. Turnbull
2008-09-04 13:58                                               ` Stefan Monnier
2008-09-04 21:58                                                 ` Paul Michael Reilly
2008-09-04 15:58                                               ` Eli Zaretskii
2008-09-04 22:00                                                 ` Paul Michael Reilly
2008-09-05  2:20                                             ` Richard M. Stallman
2008-09-05  5:33                                               ` Stephen J. Turnbull
2008-09-06 21:05                                                 ` Richard M. Stallman
2008-09-08  4:57                                                   ` Stephen J. Turnbull
2008-09-08  8:36                                                     ` Francesco Potorti`
2008-09-08  9:53                                                       ` Stephen J. Turnbull [this message]
2008-09-08 13:03                                                         ` Stefan Monnier
2008-09-09  1:58                                                           ` Stephen J. Turnbull
2008-09-08 19:15                                                         ` Eli Zaretskii
2008-09-08 16:42                                                     ` Richard M. Stallman
2008-09-08 17:55                                                       ` David De La Harpe Golden
2008-09-09  2:54                                                       ` Stephen J. Turnbull
2008-09-09 14:11                                                         ` Richard M. Stallman
2008-09-10  9:10                                                           ` Stephen J. Turnbull
2008-09-10 11:43                                                             ` Paul Michael Reilly
2008-09-10 12:23                                                               ` tomas
2008-09-10 17:55                                                               ` Stefan Monnier
2008-09-11  2:39                                                               ` Stephen J. Turnbull
2008-09-10 15:07                                                             ` David De La Harpe Golden
2008-09-03 16:08                                     ` Stefan Monnier
2008-09-03 19:56                                       ` Paul Michael Reilly
2008-09-04  0:45                                       ` Kenichi Handa
2008-09-04  4:35                                         ` Stefan Monnier
2008-09-04  2:36                                       ` Stephen J. Turnbull
2008-09-04  7:27                                         ` Paul Michael Reilly
2008-09-02  3:28                               ` Eli Zaretskii
2008-09-01  6:11                       ` Richard M. Stallman
2008-09-01  8:42                         ` Francesco Potorti`
2008-09-01 11:25                           ` Evil Boris
2008-09-01 19:39                     ` Paul Michael Reilly
2008-09-01 20:20                       ` Chong Yidong
2008-09-01 20:52                       ` Stefan Monnier
2008-09-02  1:09                         ` Richard M. Stallman
2008-09-02  3:29                           ` Eli Zaretskii
2008-09-03  2:41                             ` Richard M. Stallman
2008-09-03  3:17                               ` Eli Zaretskii
2008-09-03 19:46                                 ` Paul Michael Reilly
2008-09-03 20:20                                   ` Chong Yidong
2008-09-03 23:37                                   ` Glenn Morris
2008-09-04  0:10                                 ` Richard M. Stallman
2008-09-02 19:17                       ` Paul Michael Reilly
2008-09-01  1:06                   ` Glenn Morris
2008-09-01 19:19                     ` Paul Michael Reilly
2008-08-19  4:31       ` Chong Yidong
2008-08-19  7:15         ` Paul Michael Reilly
2008-08-20 16:27           ` Stefan Monnier
2008-08-21 13:55             ` Paul Michael Reilly
2008-08-27 15:47               ` Stefan Monnier

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=87myij0xqy.fsf@xemacs.org \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=evilborisnet@netscape.net \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=pot@gnu.org \
    --cc=rms@gnu.org \
    /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).