in reply to Re^2: Mail::MboxParser pegs the CPU
in thread Mail::MboxParser pegs the CPU
You can use something like this to create index:
use strict; use warnings; use Mail::MboxParser; my $mb = Mail::MboxParser->new( 'mbox', ); my $ind = $mb->make_index; for ( 0 .. $mb->nmsgs - 1 ) { printf "%5.5d => %10.10d => %s\n", $_, $mb->get_pos($_), $mb->get_message($_)->header->{subject}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Mail::MboxParser pegs the CPU
by oko1 (Deacon) on Jan 15, 2010 at 20:33 UTC | |
by zwon (Abbot) on Jan 15, 2010 at 20:39 UTC | |
by oko1 (Deacon) on Jan 15, 2010 at 22:03 UTC | |
by zwon (Abbot) on Jan 16, 2010 at 16:15 UTC |