🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Greg Lindahl Mon, 04 Jan 1993 04:43
putting addresses in a canonical form
#3336
Author: Greg Lindahl
Date: Mon, 04 Jan 1993 04:43
33 lines
1992 bytes
In an attempt to reinvent the wheel, I have written some code which
groks From: lines and attempts to convert the address into a canonical
form, so that a mail server that I am writing can guess out who
someone is despite GECOS changes and also puzzle out screwed up
addresses.

Since this is my first attempt at anything related to RFC822, I have
undoubtedly gotten things wrong. So, does anyone have a set of From:
lines with extremely funky addresses that I can use to test my code?
I'd like the entire line, including comments, i.e.

From: Greg Lindahl <gl8f@virginia.edu>
From: Greg (foo) Lindahl <gl8f@virginia.(foo)edu>
From: Greg (foo) Lindahl <gl8f@virginia. 	(foo) edu>
From: Greg "foo" Lindahl <gl8f@virginia.(foo)edu>
From: Greg "<foo>" Lindahl <gl8f@virginia.(foo)edu>
From: "Greg Lindahl" <gl8f@virginia.(foo)edu>
From: "Greg Lindahl"<gl8f@virginia.(foo)edu>
From: "Greg L\"indahl" <gl8f@virginia.(foo)edu>
From: gl8f@virginia.edu (Greg Lindahl)
From: gl8f@virginia.edu (Greg "<foo>" Lindahl)
From: gl8f@virginia.edu (Greg "<foo>")
From: gl8f@virginia.edu (Greg "<fo\"o>" Lindahl)
From: Greg "<foo>" Lindahl <"gl8f"@virginia.(foo)edu>

These examples only test comment deletion and figuring out which part
of the string is the address. My code reduces all of those strings to
"gl8f@virginia.edu", except the last, which is
"\"gl8f\"@virginia.edu".  I'd like some similar examples plus some
funky looking addresses.  Surely someone has generated a torture test
of this type?

Thanks in advance.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads