Re: What is the correct From: nntp header syntax (and how to fix in 40Tude Dialog news reader)?



* Mike Dee wrote:

On Sun, 29 Apr 2007 11:16:34 +0100, Sn!pe wrote:

Mike Dee <mikedee@xxxxxxxxxxxxxxxx> wrote:
[...]
Read the headers from other peoples posts in newgroups you visit, to
see what form the "From" header (generally) takes.

From headers, generated by 40tude Dialog appear to follow the
pattern, From: name <email address>

MacSOUP uses the form From: snipe@xxxxxxxxxxxxxxxxxxx (Sn!pe).
It seems that angle brackets are optional, although if they are used
they should be around the address rather than the name. If angle
brackets are not used around the address then some sort of parentheses
are required around the name field. ISTR that brackets ( ) or
quote-marks " " are legal around the name. (not entirely sure about
this last, It was quite a while ago that I looked at this.)

Five! :-)

The list so far:

1. From: name
2. From: name <email.address>
3. From: "name" <email.address>
4. From: <email.address>
5. From: email.address (name)

Although, I think "1." would be illegal.

Yes, an address is needed.

I wonder if there are any more forms out there.

6. From: email.address
7. From: name1 <email.add1>, name2 <email.add2>
8. From: groupname: name1 <email.add1>, name2 <email.add2>
9ff. A few other obsolete forms and their combinations

(see rfc2822)

The document contains this example of weird, but legal formatting:

| From: Pete(A wonderful \) chap) <pete(his account)@silly.test(his host)>
| To:A Group(Some people)
| :Chris Jones <c@(Chris's host.)public.example>,
| joe@xxxxxxxxxxx,
| John <jdoe@xxxxxxxx> (my dear friend); (the end of the group)
| Cc:(Empty list)(start)Undisclosed recipients :(nobody(that I know)) ;
| Date: Thu,
| 13
| Feb
| 1969
| 23:32
| -0330 (Newfoundland Time)
| Message-ID: <testabcd.1234@xxxxxxxxxx>
--
Strategy: A long-range plan whose merit cannot be evaluated until
sometime after those creating it have left the organization.
.



Relevant Pages