weismat has asked for the wisdom of the Perl Monks concerning the following question:
Could you point me into a direction where things go wrong? I am currently using Mail::POP3Client because I need SSL. One further requirement is that I need to be able to detach large (>10MB) attachments, but currently I do not manage to get it to work with very small attachments. Thanks for your help! I have solved my problem using MIME::Parser - this works easily according to the documentation. Thanks anyway...use strict; use Mail::POP3Client; use Email::MIME; use Email::MIME::Attachment::Stripper; my $pop = new Mail::POP3Client( USER => 'xxx', PASSWORD => "xxx", HOST => "pop.googlemail.com", USESSL => 'true', ); print "Status: ". $pop->State()." No of email:". $pop->Count(); if ($pop->Count()) { my $mail=$pop->HeadAndBody(1); my $parsed = Email::MIME->new($mail);# my $stripper = Email::MIME::Attachment::Stripper->new($parsed); my @attachments = $stripper->attachments; print;# used to be able to check @attachments in the debugger } $pop->Close(); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems using Mail::POP3Client together with Email::MIME::Attachment::Stripper
by Anonymous Monk on Mar 21, 2008 at 10:40 UTC | |
by Anonymous Monk on Mar 29, 2008 at 02:31 UTC |