A parsing problem an email header...
"Bill Thomason" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Organization | Model Software Corporation |
| Message-ID | <[email protected]> |
Hi, I'm still new to your Mail::Box Perl package. I've been reading your tutorials to learn how to use it. I just tried running this perl script that was in your tutorial: #!/usr/bin/perl use Mail::Message; my $msg = Mail::Message->read(\*STDIN); my $head = $msg->head; my $body = $msg->body; print $msg->subject,"\n"; print $body,"\n"; I got this error message: "WARNING: Illegal character in field name From" when I tried to redirect the following email into the script: From [email protected] Mon Mar 15 10:37:12 2004 Return-Path: <[email protected]> Received: from modelsoftware.com (66-79-1-162.clec.nworla.commercial.madisonriver.net [66.79.1.162]) by spamagogo.com (8.12.11/8.12.11) with ESMTP id i2FGbCOu021955 for <[email protected]>; Mon, 15 Mar 2004 10:37:12 -0600 Received: from Hazelnut (66-79-1-162.clec.nworla.commercial.madisonriver.net [66.79.1.162]) by modelsoftware.com (8.12.10/8.12.10) with ESMTP id i2FGb3rv027701 for <[email protected]>; Mon, 15 Mar 2004 10:37:03 -0600 (CST) Reply-To: <[email protected]> From: "Bill Thomason" <[email protected]> To: "'Bill Thomason'" <[email protected]> Subject: test Date: Mon, 15 Mar 2004 10:37:00 -0600 Organization: Model Software Corporation Message-Id: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-Msmail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Status: RO 1 2 3 The MTA in the modelsoftware.com domain is sendmail 8.12.10. The MTA on xebra.spamagogo.com is sendmail 8.12.11. Judging from the content of the header, the Mail::Message perl package sees the first line as the From line and tries to parse it as if it were the From: line. Is there a switch I need to set or some other object method to run so I don't get this warning message? Thanks in advance. -Bill Thomason