From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: RMAIL, MIME-related bug Date: 16 Oct 2003 12:54:24 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310121947.h9CJlhKH006102@oak.pohoyda.family> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066323402 21082 80.91.224.253 (16 Oct 2003 16:56:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 16:56:42 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Oct 16 18:56:40 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AABQV-0007Pw-00 for ; Thu, 16 Oct 2003 18:56:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AABQV-0006aH-00 for ; Thu, 16 Oct 2003 18:56:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AABPF-0005RE-Ol for emacs-devel@quimby.gnus.org; Thu, 16 Oct 2003 12:55:21 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AABOz-0005Qv-Fh for emacs-devel@gnu.org; Thu, 16 Oct 2003 12:55:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AABOT-0005CV-EA for emacs-devel@gnu.org; Thu, 16 Oct 2003 12:55:04 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AABOS-0005Ad-MD for emacs-devel@gnu.org; Thu, 16 Oct 2003 12:54:32 -0400 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id h9GGsOUN020145; Thu, 16 Oct 2003 12:54:25 -0400 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 660EC3C63E; Thu, 16 Oct 2003 12:54:24 -0400 (EDT) Original-To: Alexander Pohoyda In-Reply-To: <200310121947.h9CJlhKH006102@oak.pohoyda.family> Original-Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17162 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17162 > When we convert the email to babyl format, we can do some MIME-related > processing on it, for example: all text/* bodyparts may be > transfer-encoding (quoted-printable and base64) decoded, PGP/GPG > signatures verified, PGP/GPG decryption done, header fields of type > =?...?B?...?= decoded (RFC 2047) and unfolded (RFC 2822), etc. > This needs to be done once. No information is lost in this step. No > structure information is lost either. In order not to lose information, you need to keep the GPG signatures you have just verified since you can't re-create them yourself. Of course, you also need to keep the signed-text unless you're super-extra-careful to make sure that you can re-create the exact same byte-sequence from the rest of the data, which is rather unlikely. Why do people even consider doing any processing at that point? The processing should be done for display and nothing else, because any other option will make you lose information at some point and also forces you to have code to re-create the original format, whereas the "display-side processing" approach only needs to parse MIME but never needs to re-construct it. Stefan