From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: Emacs development <emacs-devel@gnu.org>
Subject: Re: New mail-related routines
Date: Tue, 19 Oct 2004 22:02:17 +0200 [thread overview]
Message-ID: <v9breyzdbq.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: 87sm8azjkp.fsf@oak.pohoyda.family
On Tue, Oct 19 2004, Alexander Pohoyda wrote:
> Reiner Steib <reinersteib+gmane@imap.cc> 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/
next prev parent reply other threads:[~2004-10-19 20:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 21:57 New mail-related routines Alexander Pohoyda
2004-10-18 22:12 ` Stefan Monnier
2004-10-19 7:06 ` Alexander Pohoyda
2004-10-19 12:51 ` Stefan Monnier
2004-10-19 18:37 ` Alexander Pohoyda
2004-10-19 19:29 ` Stefan Monnier
2004-10-19 23:56 ` Alexander Pohoyda
2004-10-19 12:32 ` Reiner Steib
2004-10-19 17:47 ` Alexander Pohoyda
2004-10-19 20:02 ` Reiner Steib [this message]
2004-10-20 0:03 ` Alexander Pohoyda
2004-10-24 12:03 ` Simon Josefsson
2004-10-25 22:15 ` Alexander Pohoyda
2004-10-25 22:43 ` Alexander Pohoyda
2004-10-26 23:16 ` Kevin Rodgers
2004-10-27 16:04 ` Alexander Pohoyda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=v9breyzdbq.fsf@marauder.physik.uni-ulm.de \
--to=reinersteib+gmane@imap.cc \
--cc=Reiner.Steib@gmx.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.