Article View: demon.ip.developers
Article #894Re: unread mail
From: Dave Scott
Date: Tue, 16 Jul 1996 00:00
Date: Tue, 16 Jul 1996 00:00
62 lines
2704 bytes
2704 bytes
In article: <837432741snz@wash.demon.co.uk> John Washington
<john@wash.demon.co.uk> writes:
>
> Incidentally, at least one posting within this thread seemed to
> confuse the terms 'newline' and 'blank line'. IMHO, to get what
> we informally refer to as a blank line, you need two consecutive
> newline characters.
This makes perfect sense - the 1st to terminate the current line,
the 2nd indicating the end of the "blank" itself.
> A single newline character preceding a 'From '
> is (I imagine) not sufficient to signal the start of a header.
You mean something like :-
blah\n
blah\n
\n
From ...
is required? Have to disagree - I'm pretty sure <blah\n><blah\n><From >
is all that's actually needed, i.e. only the preceding line's C/R.
OK - quick experiment time. I created the following file using Qedit,
swapping it temporarily with my home mailbox. (I'll prefix each line
with a # to show it here - just in case)
// ~\spool\mail\dave.txt begin
#From someone@over.there
#Date: Tue, 16 Jul 1996 00:11:22
#From: someone@over.there
#To: you@this.place
#Subject: Message the first
#
#This is the first message
#It has three lines in it's body
#this is the last of them
#From another@else.where
#Date: Tue, 16 Jul 1996 01:02:03
#From: another@else.where
#To: you@this.place
#Subject: Message the second
#
#This is the second and last message
#It only has two lines - this is the last.
// ~\spool\mail\dave.txt end
I tried viewing this with PCElm (1.10), FIMail (0.9d) and
NewsWin (0.9.1). All of them saw it correctly as two separate messages.
Also thinking about it, assuming something like fgets() is used to read
the file, it's easier to simply test for 'From ' at the start of a line,
rather than having to set a flag, remembering the previous line was "blank".
Does this prove it's a single <newline>, or am I still missing something?
--
()---()
(0 0) Dave Scott e-mail: dave@roborat.demon.co.uk
----m-( )-m-------------------------------------------------------------
=o=
Technical Details
Message-ID:
<593574303wnr@roborat.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<303048688wnr@longevb.demon.co.uk> <31dd2477.0@muir-et2.staff.demon.net> <837432741snz@wash.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bb05,74043d7991f5707b X-Google-Attributes: gid10bb05,public From: Dave Scott <dave@roborat.demon.co.uk> Subject: Re: unread mail Date: 1996/07/16 Message-ID: <593574303wnr@roborat.demon.co.uk> X-Deja-AN: 169364908 x-nntp-posting-host: roborat.demon.co.uk references: <303048688wnr@longevb.demon.co.uk> <31dd2477.0@muir-et2.staff.demon.net> <837432741snz@wash.demon.co.uk> x-mail2news-path: relay-4.mail.demon.net!post.demon.co.uk!roborat.demon.co.uk organization: None reply-to: dave@roborat.demon.co.uk newsgroups: demon.ip.developers