From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alexander Pohoyda Newsgroups: gmane.emacs.devel Subject: [rmail-mbox-branch]: mail-utils Date: 06 Oct 2004 23:38:54 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <87d5zvwmq9.fsf_-_@oak.pohoyda.family> References: <1096006177.432792.29828.nullmailer@Update.UU.SE> <1096014084.739640.30529.nullmailer@Update.UU.SE> <200410031040.i93Ae1YS000609@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 1097098784 18561 80.91.229.6 (6 Oct 2004 21:39:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Oct 2004 21:39:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 06 23:39:36 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 1CFJVX-0005VD-00 for ; Wed, 06 Oct 2004 23:39:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFJcF-00065b-JN for ged-emacs-devel@m.gmane.org; Wed, 06 Oct 2004 17:46:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CFJc9-000653-0c for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:46:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CFJc8-00064H-2p for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:46:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CFJc7-00064E-On for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:46:24 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CFJUw-0001Cw-Tm for emacs-devel@gnu.org; Wed, 06 Oct 2004 17:38:59 -0400 Original-Received: (qmail 3587 invoked by uid 65534); 6 Oct 2004 21:38:56 -0000 Original-Received: from p50842C34.dip0.t-ipconnect.de (EHLO www2.gmx.net) (80.132.44.52) by mail.gmx.net (mp011) with SMTP; 06 Oct 2004 23:38:56 +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 i96LctWT002041; Wed, 6 Oct 2004 23:38:55 +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 i96Lcsfe002038; Wed, 6 Oct 2004 23:38:54 +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: rms@gnu.org In-Reply-To: Original-Lines: 67 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:28009 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28009 Richard Stallman writes: > So if you would like them to be installed someday, how about > starting to send us diffs? OK, let's start with the mail-utils.el, because it is used a lot in Rmail. Before I send diffs, I'd like to clear some general questions. For example, the original implementation of `mail-[un]quote-printable' functions is too limited. I suppose that this is desired: (defun mail-quote-printable (string &optional wrapper) "Encode the STRING in such a way that the resulting octets are unlikely to be modified by mail transport. Defined by RFC 2045. If the optional argument WRAPPER is non-nil, decorate the resulting string with =?charset?Q?....?=, as defined by RFC 2047." (if wrapper (rfc2047-encode-string string) (rfc2045-quoted-printable-encode-string string))) Now, there are many other functions and constants which are defined by some RFCs and I have implemented them in such a way: mime/ rfc2045.el (13 functions) rfc2047.el (11 functions) rfc2231.el (7 functions) (some other less important files) Functions in these files have corresponding `rfcXXXX-' prefix. Functions of general use have aliases like this: (defalias 'mime-is-conformant 'rfc2045-is-conformant) (defalias 'quoted-printable-encode-string 'rfc2045-quoted-printable-encode-string) Is this OK? I would propose to add this new `mime' directory into $EMACSROOT/lisp/mail/, but there are files named: rfc2045.el rfc2047.el rfc2231.el in $EMACSROOT/lisp/gnus/ directory already. While it's easy to merge two versions of rfc2045.el, rfc2047.el is more troublesome. The gnus/rfc2047.el file contains something like this: (require 'mm-util) ;; Fixme: Avoid this (used for mail-parse-charset) mm dependence on gnus. (require 'mail-prsvr) (require 'base64) (autoload 'mm-body-7-or-8 "mm-bodies") and I decided that I better not merge pure RFC-defined functionality with GNUS-specific functions. What's your decision on this? -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44