Basically, the mail server went to la la land with the file on the Mail
Server.
Perhaps, I'll try to monkey with that a little more with the help from the
SA.
I tried the auto flush
$| and that didn't help either.
All the emails are in one big file and they're divided by /~From </
I shall look at Mime Parser.
> -----Original Message-----
> From: Douglas Wilson [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 6:00 PM
> To: Perl-Win32-Users Mailing List
> Subject: Re: Divide a Large File into many small files
>
> 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:
> [EMAIL PROTECTED]
> To unsubscribe, forward this message to
> [EMAIL PROTECTED]
> For non-automated Mailing List support, send email to
> [EMAIL PROTECTED]
---
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]