home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.misc
- Path: sparky!uunet!gatech!paladin.american.edu!darwin.sura.net!uvaarpa!murdoch!fermi.clas.Virginia.EDU!gl8f
- From: gl8f@fermi.clas.Virginia.EDU (Greg Lindahl)
- Subject: putting addresses in a canonical form
- Message-ID: <1993Jan4.044344.24439@murdoch.acc.Virginia.EDU>
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: Department of Astronomy, University of Virginia
- Date: Mon, 4 Jan 1993 04:43:44 GMT
- Lines: 33
-
- 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.
-