Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Memory problem

by ruoso (Curate)
on Jun 10, 2005 at 10:33 UTC ( [id://465489]=note: print w/replies, xml ) Need Help??


in reply to Memory problem

First of all, the correct way of concatenating the arrays would be:

my @persons = (@senders, @recipients);

I don't know the module Mail::Box::Manager a lot, but it seems to be using mbox files for managing the mail. This requires that the entire mbox file to be read and parsed to search the emails, and then writing an enormous mbox file again.

I'd like to suggest you to change from mbox to maildir, so your script won't have to parse a giant file, which is probably the reason for the memory eating...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://465489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-23 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found