emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New mail-related routines


From: Alexander Pohoyda
Subject: Re: New mail-related routines
Date: 19 Oct 2004 20:37:39 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Alexander Pohoyda <address@hidden> writes:

> > > + (if (or (search-forward (concat "\n" mail-header-separator "\n") to t)
> > > +         (search-forward "\n\n" to t))
> > 
> > This is less robust than what rfc822-goto-eoh uses, in the case where the
> > mail-header-separator is modified.
> 
> Yes, you're right.  I'll reuse the original regexp from
> rfc822-goto-eoh, ...

There's a small problem with this approach.  In mbox file format,
messages start with "From blah-blah..", so the original
rfc822-goto-eoh stops at this line.

Wouldn't it be better to use pure "\n\n" as defined by RFC and to make
this a good general-purpose function?  I tend to this solution now.


-- 
Alexander Pohoyda <address@hidden>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44




reply via email to

[Prev in Thread] Current Thread [Next in Thread]