From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: [rmail-mbox-branch]: mail-utils Date: 09 Oct 2004 18:04:04 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <878yafj2tn.fsf@oak.pohoyda.family> References: <1096006177.432792.29828.nullmailer@Update.UU.SE> <1096014084.739640.30529.nullmailer@Update.UU.SE> <200410031040.i93Ae1YS000609@oak.pohoyda.family> <87d5zvwmq9.fsf_-_@oak.pohoyda.family> <20041006214742.GA5180@fencepost> <87mzywyeau.fsf@oak.pohoyda.family> <20041008234741.GA17298@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097338305 6849 80.91.229.6 (9 Oct 2004 16:11:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Oct 2004 16:11:45 +0000 (UTC) Cc: rms@gnu.org, ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 09 18:11:32 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGJoh-0003pM-00 for ; Sat, 09 Oct 2004 18:11:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGJvX-0003fA-BB for ged-emacs-devel@m.gmane.org; Sat, 09 Oct 2004 12:18:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGJvP-0003ey-9a for emacs-devel@gnu.org; Sat, 09 Oct 2004 12:18:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGJvO-0003ee-QM for emacs-devel@gnu.org; Sat, 09 Oct 2004 12:18:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGJvO-0003ea-Mz for emacs-devel@gnu.org; Sat, 09 Oct 2004 12:18:26 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CGJoM-0005sX-I2 for emacs-devel@gnu.org; Sat, 09 Oct 2004 12:11:10 -0400 Original-Received: (qmail 5942 invoked by uid 65534); 9 Oct 2004 16:04:22 -0000 Original-Received: from p50842E6A.dip0.t-ipconnect.de (EHLO www2.gmx.net) (80.132.46.106) by mail.gmx.net (mp018) with SMTP; 09 Oct 2004 18:04:22 +0200 X-Authenticated: #14602519 Original-Received: from oak.pohoyda.family (localhost [127.0.0.1]) by www2.gmx.net (8.12.10/8.12.10) with ESMTP id i99G45tG001228; Sat, 9 Oct 2004 18:04:21 +0200 (CEST) (envelope-from alexander.pohoyda@gmx.net) Original-Received: (from apog@localhost) by oak.pohoyda.family (8.12.10/8.12.10/Submit) id i99G44q4001225; Sat, 9 Oct 2004 18:04:04 +0200 (CEST) (envelope-from alexander.pohoyda@gmx.net) X-Authentication-Warning: oak.pohoyda.family: apog set sender to alexander.pohoyda@gmx.net using -f Original-To: Miles Bader In-Reply-To: <20041008234741.GA17298@fencepost> Original-Lines: 82 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28137 gmane.emacs.gnus.general:58786 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28137 Miles Bader writes: > On Sat, Oct 09, 2004 at 01:34:49AM +0200, Alexander Pohoyda wrote: > > > The mm- stuff seems not to be intended to be gnus-specific, but rather > > > general-purpose code for handling mime that happens to be developed as part > > > of gnus. > > > > Yes, I understand the intention. > > > > > > > There are probably a few dependencies on gnus that have crept in, but I > > > presume these could be excised. > > > > Some mm-*.el files use quite often functions or constants with gnus- > > prefix. > > Can you be more specific? I did a grep, and the dependencies seem pretty > much restricted to a few files (e.g., mm-view.el); Yes, there are only very few cases: mm-partial.el:(require 'gnus-sum) mm-partial.el: (set-buffer gnus-summary-buffer) mm-partial.el: (gnus-request-article-this-buffer (aref header 0) mm-partial.el: (gnus-summary-article-number)))) mm-partial.el: (setq gnus-article-mime-handles mm-partial.el: (append (if (listp (car gnus-article-mime-handles)) mm-partial.el: gnus-article-mime-handles mm-partial.el: (list gnus-article-mime-handles)) mm-partial.el: (run-hooks 'gnus-article-decode-hook) mm-partial.el: (gnus-article-prepare-display) mm-uu.el: :group 'gnus-article-mime) mm-view.el: (autoload 'gnus-article-prepare-display "gnus-art") mm-view.el: (run-hooks 'gnus-article-decode-hook) My primary concern, however, is that mm- stuff is rather a MIME parser (viewer), while rfc*.el files implement basic functions. Wouldn't it be good to have these two things clearly separated? If we don't separate mm- and basic MIME functions, and if we don't move them out of gnus directory, people will continue to re-implement basic functions. Do you know of any good reason to have the mm-* stuff used in rfc* files? Anyway, we need MIME support in Rmail. Would it be correct to make Rmail depend on file from Gnus directory? My idea is to move MIME stuff into lisp/mail(/mime?) directory. Both Gnus and Rmail could use these basic functions. All I propose to move, are few files: lisp/gnus/rfc2045.el lisp/gnus/rfc2047.el lisp/gnus/rfc2231.el leaving mm-* files intact. What exactly do you disagree with? > > I would like to have a clean MIME library first. > > Sure, and the mm- stuff seems like the right to start from. By "MIME library" I mean functions like rfc2045-qp-decode-string, rfc2231-decode-string, rfc2047-decode-region but not mm-inline-partial, mm-inline-image-xemacs, mm-setup-w3, mm-inline-message > would completely silly to reimplement all of it when mm- is pretty > close to what you want anyway. People may have their own ideas how to use MIME, let's not force them to use mm- as a bonus. -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44