From: Alexander Pohoyda <alexander.pohoyda@gmx.net>
Cc: Emacs development <emacs-devel@gnu.org>
Subject: Re: New mail-related routines
Date: 19 Oct 2004 19:47:18 +0200 [thread overview]
Message-ID: <87sm8azjkp.fsf@oak.pohoyda.family> (raw)
In-Reply-To: <v9r7nu6g8s.fsf@marauder.physik.uni-ulm.de>
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> > +;;; The -hf suffix means Header Field.
>
> IIRC, the coding conventions (in Emacs Lisp) say not to abbreviate
> function and variable names.
I have no problems with that. If required, I will expand all names.
> > +(defun mail-unfold-region (from to)
> > + "Unfold header fields in the region between FROM and TO,
> > +as defined by RFC 2822."
> [...]
> > + (while (re-search-forward
> > + (format "%s%s+" mail-crlf-regexp mail-wsp-regexp) nil t)
> > + (replace-match " " nil t))))))
>
> I didn't look at the other functions, but this one is incorrect,
> AFAICS:
Yes, you're right, the function does not conform strictly. However,
many MUAs insert either TAB or few SPACE characters during header
field folding, so this kind of "loose" unfolding is also desired, I
think. I'll add an optional argument to control this behaviour.
> The result with
> `rfc2047-unfold-region' is correct:
Funny that the RFC 2047 itself does not define header field
folding/unfolding, so rfc2047-unfold-region is rather confusing name
for this function.
However, let's talk about RFC 2047 functions later :-)
Thank you very much for your comments!
--
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44
next prev parent reply other threads:[~2004-10-19 17:47 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 [this message]
2004-10-19 20:02 ` Reiner Steib
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sm8azjkp.fsf@oak.pohoyda.family \
--to=alexander.pohoyda@gmx.net \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).