unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Pohoyda <alexander.pohoyda@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: RMAIL, MIME clean-up, coding system
Date: Sun, 12 Oct 2003 22:33:21 +0200 (CEST)	[thread overview]
Message-ID: <200310122033.h9CKXLQA006333@oak.pohoyda.family> (raw)
In-Reply-To: <E1A7c1O-00074g-CD@fencepost.gnu.org>

Richard Stallman <rms@gnu.org> writes:

>     That's exactly what I have proposed: to encode them (text
>     bodyparts) back into US-ASCII stream using base64 method.
> 
> I am not really sure what that means.  Could you explain?

The basic problem is here once again:
We read emails from inbox file and store them into RMAIL file, doing
some processing on the way. This processing includes base64 and
quoted-printable decoding. Now, to export this email back to file
(rmail-output function) we have two ways:
a) write it using emacs-mule coding system;
b) encode bodyparts which need to be encoded using base64 or
quoted-printable "transfer encoding" and save the file as US-ASCII.

Solution (a) has a clear disadvantage that such a file may only be
visited by Emacs. Well, this is such a big disadvantage that I don't
buy this solution at all.

Solution (b) is more complicated and, in fact, does the action
reversed to what we did with an email in the first place.
Hopefully we don't have to do this too often.
So another question arises: does it make sence to do the initial
processing in the first place?
The fact is that we already do some processing, namely: we insert
the extra "simplified" header between the original header and the
message body.

Both solutions do not need the X-Coding-System header field, which I
mentioned before.
Do I oversee something?


> Anyway, the first idea that occurs to me is to edit the headers of
> the mime attachments to say how they are really encoded.  Why not?

Yes, this is already done.
Imagine that we have a message with two bodyparts of type text/plain.
One of them is encoded using koi8-r and another is a utf-8 text.
We know this, and we can show the message in the buffer.

The problem is here: how to export it into the file?


-- 
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44

  reply	other threads:[~2003-10-12 20:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200310080542.h985gNkp000541@oak.pohoyda.family>
2003-10-09 14:44 ` RMAIL, MIME clean-up, coding system Richard Stallman
2003-10-12 20:33   ` Alexander Pohoyda [this message]
     [not found] <200310051053.h95ArIwj001185@oak.pohoyda.family>
2003-10-07 21:20 ` Eli Zaretskii
2003-10-07 21:36   ` Alexander Pohoyda
2003-10-07 22:49     ` Eli Zaretskii
2003-10-07 21:59   ` Stefan Monnier
2003-10-07 22:33     ` Alexander Pohoyda
2003-10-07 23:02       ` Stefan Monnier
2003-10-07 22:50     ` Eli Zaretskii
2003-10-07 23:04       ` 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=200310122033.h9CKXLQA006333@oak.pohoyda.family \
    --to=alexander.pohoyda@gmx.net \
    --cc=emacs-devel@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).