Article View: demon.ip.developers
Article #888Re: unread mail
From: Paul Carpenter
Date: Sat, 06 Jul 1996 00:00
Date: Sat, 06 Jul 1996 00:00
65 lines
3507 bytes
3507 bytes
chris@keris.demon.co.uk "Chris Croughton" writes:
-paul@pcserv.demon.co.uk "Paul Carpenter" wrote:
->-Count the number of 'From ' lines and the number of 'Status: R'
->-lines. Subtract one from the other.
->
->From experience this process gets screwed up, by paragraphs like this one,
->because the start of the paragraph is '<newline><newline>From' which is the
->SAME as the way the DOS package reads the start of a message.
-
-No it doesn't with mail, because KA9Q sticks '>' on the front of any
-line starting with "From ". In news batches this doesn't happen because
-it uses a different mechanism (the #! rnews line contains a character
-count for the message so other #! rnews lines within it get ignored).
Sorry!
Point 1 I was talking about mail, which KA9Q doe *NO* inserting of '>'
when RECEIVING a message, you are refereing to REPLYING to a message within
PCELM and the like! I was NOT talking about NEWS I *was* refering to MAIL
From experience in particular with PCELM and that just counting lines
starting with 'From ' gets screwed up by the text in the _body_ of the
message!
-There are lots of programs which hande mail fine with just the "From "
-string (note, you have to match it at the start of the line, not
Irrelevant to what was stated as ADDITIONAL unread messages appear
which are 'From Somebody' because it has misinterpreted the headers!
-stripping off spaces or anything like that; use (Left$(lin$,5) = "From ")
-to test, not Instr etc.) including PCELM, VIEW, John Washington's
-mail2snz, my mail to news script, Tim Illingworth's Listserv software,
-my list and mail server software, etc.
I am fully aware of these items of software and I was referring to
paragraghs in the _body_ of the text STARTING with 'From .....'
->The addendum I would make is that the next line contains a valid header code
->to be a bit safer on counting the 'From' by counting 'From' plus next line has
->started with 'RFC822 keyword:' then do the subtraction as before.
Tell me how many of your message headers of RECEIVED emails do NOT start
From xyz@isp.co.*......
Received: ..........
-That *will* mess up, because several mailers include non-822 headers and
-they may be before you find an 822 one. You might be safe saying "at
-least one RFC 822 header before you find a blank line" but it's really
-not necessary.
The non-RFC822 keywords are not _normally_ inserted en-route before the original
header, but at the END of the existing header, just like 'Status: R' and 'X-*'.
Tell me what happened with the test mail I sent you with at least one paragraph
in the body starting
From ......
--
Paul Carpenter | paul@pcserv.demon.co.uk
Consulting for General, Scientific, Industrial Computing & more..
email: listuser@pcserv.demon.co.uk - how to _use_ UK Consultants listings
email: consult@pcserv.demon.co.uk - to _join_ the UK Consultants listings
Technical Details
Message-ID:
<836686300snz@pcserv.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<303048688wnr@longevb.demon.co.uk> <Snews.960706.094010.chris.7773@keris.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: Paul Carpenter <paul@pcserv.demon.co.uk> Subject: Re: unread mail Date: 1996/07/06 Message-ID: <836686300snz@pcserv.demon.co.uk> X-Deja-AN: 164050113 x-nntp-posting-host: pcserv.demon.co.uk references: <303048688wnr@longevb.demon.co.uk> <Snews.960706.094010.chris.7773@keris.demon.co.uk> x-mail2news-path: pcserv.demon.co.uk organization: PC Services reply-to: paul@pcserv.demon.co.uk newsgroups: demon.ip.developers