Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > problem using Mail::Audit::Attach under cygwin

Reply
Thread Tools

problem using Mail::Audit::Attach under cygwin

 
 
Mark Wood-Patrick
Guest
Posts: n/a
 
      11-08-2003
I am getting the following error with Attach:

Can't locate auto/Mail/Audit/Attach/num_attachm.al in @INC (@INC contains:
/usr/
lib/perl5/5.6.1/cygwin-multi /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1
/cygwin-multi /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at
mail
..pl line 22

Any ideas what I'm doing wrong? My program looks like

use Mail:OP3Client;
use Mail::Audit qw(Attach); # Mail::Audit::Attach

$pop = new Mail:OP3Client( USER => "mark_woodpatrick",
PASSWORD => "koolie_kat",
HOST => "pop.pacbell.yahoo.com" );
for( $i = 1; $i <= $pop->Count(); $i++ ) {
foreach( $pop->Head( $i ) ) {
my $mailHeader = $_;
if ( /Subject: new pictures/ ) {
my $fh;
my @msg = $pop->HeadAndBody( $i );
my $mail = Mail::Audit->new(emergency=>"~/emergency_mbox", data =>
\@msg);

my $num_attachment = $mail->num_attachments;
my $attachments = $mail->attachments;

print $mailHeader, "\n";
#print "XXXX ".$mail->from."num attachments:
".$mail->num_attachments."\n";
print "XXXX "."num attachments: ".$mail->num_attachments()."\n";

# remove_attachments(filename => "\.(exe|scr|pif)",
# smaller_than => 20000);

# $mail->remove_attachments(mime_type => "text/html");

foreach (@$attachments) {
# $_->save($attachdir)
print "mime type: $_->mime_type\n";
next;
# if ($_->mime_type =~ |^image/|);
# $_->remove ;
# if ($_->filename =~ |\.(vcf)$|);
}

next;

if ( open ($fh, ">msg_$i.txt")) {
$pop->HeadAndBodyToFile( $fh, $i );
close($fh);
} else {
print "can't save message $i\n";
}
}
}
}
$pop->Close();


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Installing Win32::OLE under cygwin usenet Perl 2 05-22-2005 03:45 AM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-05-2003 04:42 PM
WELCOME to cygwin@cygwin.com cygwin-help@cygwin.com Python 1 09-05-2003 07:46 AM
confirm unsubscribe from cygwin-announce@cygwin.com cygwin-announce-help@cygwin.com Python 0 09-05-2003 01:29 AM
confirm unsubscribe from cygwin@cygwin.com cygwin-help@cygwin.com Python 0 09-04-2003 06:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57