mmittiga17 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all, I am using Perl's Pop3 module to download email along with Mime::Parser to detach any files into readable formats. I have never seen this before but I am now getting an error message: no decoder for uuencode at /usr/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 789 no decoder for uuencode at /usr/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 789 Debug shows this for the first time: with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate I am using pop3 with ssl. Here is my code.
#---set mail credentials---# my $_MAILHOST="xxxxx"; my $_USER="xxxx"; #username my $_PASS="xxxx"; #password #---Define output directory---# my $_OUTDIR="/x/xxx/mail/xxx"; #Output attachments here #---Begin retrieve mail and strip attachment---# my $i = 0; my $parser = new MIME::Parser; my $pop = new Mail::POP3Client( HOST =>$_MAILHOST, USER =>$_USER, PASSWORD =>$_PASS, DEBUG =>2, SOCKET => undef, USESSL => 1 ); $parser->output_dir( $_OUTDIR ); if( $pop->Count() < 0 ) { die "Error accessing POP mailbox"; } for( $i = 0; $i <= $pop->Count(); $i++ ) { my $wholeBody = $pop->HeadAndBody( $i ); ### Automatically attempt to RFC 2047-decode the MIME headers? $parser->decode_headers(0); ### default is false ### Look for uuencode in "text" messages, and extract it? $parser->extract_uuencode(0); ### default is false my $entity = $parser->parse_data( $wholeBody ); #$pop->Delete( $i ); }
If I pull the mail via Outlook I do not have any issues. Any advise will be appreciated.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mime::Parser question.
by Anonymous Monk on Sep 06, 2011 at 17:31 UTC | |
by mmittiga17 (Scribe) on Sep 06, 2011 at 18:12 UTC |
Back to
Seekers of Perl Wisdom