Phil R Lawrence on 31 Oct 2003 13:56:16 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Need to parse ESMTP MAIL line.


On Fri, 31 Oct 2003 12:33:42 -0500
Meng Weng Wong <mengwong@dumbo.pobox.com> wrote:

> MAIL FROM:<"this@is.a> legal=email"@address.com> SIZE=1234 OTHER=foo@bar.com

Can I assume you are able to recognize the SIZE, OTHER and any others like them?

As for: 
  <"this@is.a> legal=email"@address.com>

by itself, I'd start by reversing the string.  Since the domain part is stricter than the local part, you can easily split the result on /@/.

Phil
-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**