|
Hi,
i need to use MIME::Explode in conjunction with a self made virus checker (cgvirusscan) on Mail Files generated by CommuniGate Pro. These files are picked up directly from the mail queue and are nor realy in MBOX format, but almost.
The only difference to a clean MBOX format is some additional lines at the beginning of the file. These special lines are easily to identify, as they start at the beginning of the file and reach until a BLANK newline.
Example:
P I 02-06-2003 14:37:03 0000 ____ ____ <>
A [212.87.130.89]
R W 02-06-2003 14:37:03 0000 ____ _FY_ <xxx@yyyyy.com>
Received: from leemarine.com ([123.121.224.102] verified)
by xxxxx.net (CommuniGate Pro SMTP 4.0.3)
with ESMTP-TLS id 626943 for xxxxx@yyyyy.com; Mon, 02 Jun 2003 16:37:03 +0200
Received: (localhost) by zzzzz.com (8.12.9) id h52EZ5lZ027601; Mon, 2 Jun 2003 08:35:05 -0600 (MDT)
Date: Mon, 2 Jun 2003 08:35:05 -0600 (MDT)
From: MAILER-DAEMON@zzzzz.com (Mail Delivery Subsystem)
Subject: Returned mail: see transcript for details
Message-Id: <200306021435.h52EZ5lZ027601@zzzzz.com>
To: <xxxxx@yyyyy.com>
MIME-Version: 1.0
In the example above, if i delete the first 4 lines, mime::explode runs just fine, but not if these lines are in the file.
Is there any way to make MIME::Explode compatible with this special file format - e.g. make it ignore the additional header?
This would hepl me tremendously. I am no programmer, so i couldn't modify the source myself. Sorry.
Thanks a lot!
Stefan Seiz - www.stefanseiz.com
|