[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New mail-related routines
From: |
Reiner Steib |
Subject: |
Re: New mail-related routines |
Date: |
Tue, 19 Oct 2004 22:02:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
On Tue, Oct 19 2004, Alexander Pohoyda wrote:
> Reiner Steib <address@hidden> 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/
Re: New mail-related routines, Reiner Steib, 2004/10/19
Re: New mail-related routines, Simon Josefsson, 2004/10/24