in reply to Resend Email from Mbox format

You may find Mail::Box::Mbox to be of some assistance as well.

use strict; use Mail::Box::Mbox; my $input = Mail::Box::Mbox->new(folder=>$ifile) or die; for my $msg ($input->messages) { print "[$ifile] message subject: ", $msg->subject, " sender: ", $m +sg->sender, "\n"; } $input->close;

-Paul

Replies are listed 'Best First'.
Re^2: Resend Email from Mbox format
by Anonymous Monk on Jan 03, 2009 at 04:42 UTC
    last line:
    $input->close();