On 04/28/00, ""Richard" <[EMAIL PROTECTED]>" wrote:

> I have a very large file, almost half a Gig.  It's an MBX File that Outlook
> couldn't handle and is comprised of many email with large attachments.

Have you looked at MIME::Parser?

> My question is there a way to force it to read and immediately spit out a
> file or does Perl's file methods always read an entire file and then start
> spitting out smaller files?

Perl will read however much you tell it to. It will usually buffer
the output unless you tell it not to. (see perldoc pervar for $|).
It should flush the buffer when you close the file anyway, so if you're
splitting a file, you should see more and more files as you work your way
through it.

> I'm doing it 2 methods.

Neither method looks like it does what you want. The first is opening
and closing files on every line of input? The second is only writing the
'From: ' line? I didn't look too closely before I erased it. Did you want
to split the files based on the From line? What if there's two emails
from the same person?

Can you use Net::POP3 or Mail::POP3Client to fetch the individual emails
from the POP3 server?

Good Luck,
Douglas Wilson

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to