From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: New mail-related routines Date: Tue, 19 Oct 2004 22:02:17 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <200410182157.i9ILvjln000739@oak.pohoyda.family> <87sm8azjkp.fsf@oak.pohoyda.family> Reply-To: Reiner Steib NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098216972 20264 80.91.229.6 (19 Oct 2004 20:16:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2004 20:16:12 +0000 (UTC) Cc: Emacs development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 19 22:16:00 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 1CK0Om-0000j9-00 for ; Tue, 19 Oct 2004 22:16:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CK0W8-0005s1-HU for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2004 16:23:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CK0W0-0005rp-0O for emacs-devel@gnu.org; Tue, 19 Oct 2004 16:23:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CK0Vz-0005rQ-7M for emacs-devel@gnu.org; Tue, 19 Oct 2004 16:23:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CK0Vz-0005rN-4V for emacs-devel@gnu.org; Tue, 19 Oct 2004 16:23:27 -0400 Original-Received: from [134.60.1.1] (helo=mail-new.rz.uni-ulm.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CK0ON-0005gQ-8N for emacs-devel@gnu.org; Tue, 19 Oct 2004 16:15:36 -0400 Original-Received: from lumberjack.physik.uni-ulm.de (lumberjack.physik.uni-ulm.de [134.60.10.173]) by mail.uni-ulm.de (8.13.1/8.13.1) with ESMTP id i9JKFQSU025812; Tue, 19 Oct 2004 22:15:26 +0200 (MEST) Original-Received: from me (lumberjack.physik.uni-ulm.de [134.60.10.173]) by lumberjack.physik.uni-ulm.de (Postfix) with SMTP id 3777918173; Tue, 19 Oct 2004 22:15:25 +0200 (CEST) Original-Received: (nullmailer pid 4129 invoked by uid 170); Tue, 19 Oct 2004 20:02:18 -0000 Mail-Followup-To: Alexander Pohoyda , Emacs development Original-To: Alexander Pohoyda X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ 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:28626 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28626 On Tue, Oct 19 2004, Alexander Pohoyda wrote: > Reiner Steib writes: [...] >> > +(defun mail-unfold-region (from to) >> > + "Unfold header fields in the region between FROM and TO, >> > +as defined by RFC 2822." [...] >> I didn't look at the other functions, but this one is incorrect, >> AFAICS: > > Yes, you're right, the function does not conform strictly. Well, the doc string says "as defined by RFC 2822". > However, many MUAs insert either TAB IIRC, using "\n\t" is correct. (Disclaimer: I'm not an expert on this.) > or few SPACE characters during header field folding, so this kind of > "loose" unfolding is also desired, I think. I'd call it "broken". Some programs also convert "foo bar" to "foobar" because of incorrect unfolding. > I'll add an optional argument to control this behaviour. Please make the _strict_ behavior the default. >> The result with `rfc2047-unfold-region' is correct: > > Funny that the RFC 2047 itself does not define header field > folding/unfolding, Section 8 of RFC 2047 contains examples for unfolding. > so rfc2047-unfold-region is rather confusing name for this function. As soon as the MUA or news client claims to support MIME, it has to unfold headers according to the MIME rules. > However, let's talk about RFC 2047 functions later :-) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/