🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #377

Re: Replying to mail... is there a general theory?

#377
From: a.e.mossberg
Date: Tue, 11 Jul 1989 14:42
26 lines
1486 bytes
joe@hanauma.stanford.edu (Joe Dellinger) writes:
>	My question is: what's the best way to get a return address
>out of a message? It seems that I should use either the address on
>the "From" or "From:" lines, but which is correct? Neither works all
>the time. Here are some samples:

Don't even consider using the 'From' line. Use, in order of preference,
the 'Reply-To:' line followed by the 'From:' line.

>	From looking at other samples collected in my mbox, it seems the
>best algorithm would be:

>Look at the "From:" line. Does it have a "<...>" field in it? If yes, use
>whatever is in the <>'s as the return address; If no, use the first field
>after the "From:" as the return address.

Look at the appropriate RFC. Look at the parsing code used in other programs.
Your suggestion is a bit too simplistic to catch all varities.  Try it out
anyway. See where it fails. Go back to the drawing board. Try again.


aem

a.e.mossberg - aem@mthvax.cs.miami.edu/aem@umiami.BITNET - Pahayokee Bioregion
If you crumple your money into little balls, it will never stick together.
							- David Byrne
Technical Details
Message-ID: <431@umigw.MIAMI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!umigw!ibiza!aem
References: <3483@portia.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!umigw!ibiza!aem
From: aem@ibiza.cs.miami.edu (a.e.mossberg)
Newsgroups: comp.mail.misc
Subject: Re: Replying to mail... is there a general theory?
Message-ID: <431@umigw.MIAMI.EDU>
Date: 11 Jul 89 14:42:29 GMT
References: <3483@portia.Stanford.EDU>
Sender: news@umigw.MIAMI.EDU
Lines: 26