AssFace has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Mail::Internet; use Mail::Header; #variable declaration my $strSpamDir = 'D:/spam/SPAM_FINAL'; my $file; my $mail; opendir SPAM_DIR, $strSpamDir or die "could not opendir $strSpamDir:$! +\n"; foreach $file (readdir SPAM_DIR){ if($file ne '.' && $file ne '..'){ open(MY_FILE, "$strSpamDir/$file") or die "could not open the +file $strSpamDir/$file:$!\n"; $mail = Mail::Internet->new(\*MY_FILE); $mail->print_header(); close(MY_FILE) or die "could not close $strSpamDir/$file:$!\n" +; } } closedir SPAM_DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mail::Internet on Win32?
by BrowserUk (Patriarch) on Jun 27, 2003 at 15:54 UTC | |
by AssFace (Pilgrim) on Jun 27, 2003 at 16:22 UTC | |
by BrowserUk (Patriarch) on Jun 27, 2003 at 16:35 UTC | |
|
Re: Mail::Internet on Win32?
by AssFace (Pilgrim) on Jun 27, 2003 at 14:13 UTC | |
|
Re: Mail::Internet on Win32?
by Thelonius (Priest) on Jun 27, 2003 at 15:55 UTC | |
by AssFace (Pilgrim) on Jun 27, 2003 at 16:31 UTC |