Commit e4f5abda authored by Committed by Richard P. Curnow
Fix deficiencies in the parsing of mbox From lines
1. The local part of email addresses can actually have a lot more characters in it than you were recognizing. 2. In addition, quotation marks can be used to include even more characters in the local part. 3. Valid characters in the domain part of the address are actually much more restricted than valid characters in the local part. 4. Some software wraps the email address in angle brackets. 5. You don't see it all that often anymore, but sometimes you will see domain routing notation in From lines, e.g., "@domain1:foo@domain2". 6. Finally, the domain part of an email address could be an IP address wrapped in square braces rather than a DNS domain name.
Showing with 47 additions and 5 deletions