empika has asked for the wisdom of the Perl Monks concerning the following question:

Hi Im trying to write a program that will strip email attachments off of incoming emails and then place them in a folder, i have this bit done using net::pop3 but i need to move the stripped emails into a folder for safekeeping, i figured the way to do this was by using Mail::Box::pop3. Howeveri cant acctually install the module as it borks in the install:
40mbox -- 8 scripts; Mail::Box::Mbox; mbox folders 40mbox/10read.......ok 40mbox/20write......ok 40mbox/30delay......ok 40mbox/40append.....ok 13/32ERROR: Package Mail::Box::IMAP4 does not i +mplement Mail::Box::foundIn. Please warn the author, this shouldn't happen. at ../lib/Mail/Reporter +.pm line 196 Mail::Reporter::notImplemented('Mail::Box::IMAP4') called at . +./lib/Mail/Box.pm line 155 Mail::Box::foundIn('Mail::Box::IMAP4','=empty','create',1,'acc +ess','rw','lock_type','NONE','authentication',...) called at ../lib/M +ail/Box/Manager.pm line 208 Mail::Box::Manager::open('Mail::Box::Manager=HASH(0x813361c)', +'folder','=empty','folderdir','folders','lock_type','NONE','extract', +'LAZY',...) called at 40mbox/40append.t line 107 # Looks like you planned 32 tests but only ran 13. # Looks like your test died just after 13. 40mbox/40append.....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 14-32 Failed 19/32 tests, 40.62% okay 40mbox/50create.....ok 40mbox/60thread.....ok 40mbox/70inplace....ok 40mbox/80update.....ok 41mh -- 6 scripts; Mail::Box::MH; mh folders 41mh/10read......ok 41mh/20write.....ok 41mh/30append....ok 41mh/50create....ok 41mh/60thread....ok 41mh/70seqs......ok 42maildir -- 3 scripts; Mail::Box::Maildir; maildir folders 42maildir -- 3 scripts; Mail::Box::Maildir; maildir folders 42maildir/10read......ok 42maildir/20write.....ok 42maildir/30append....ok 43pop3 -- 4 scripts; Mail::Box::POP3; pop3 folders 43pop3/01basic.........NOK 1 # Failed test (43pop3/01basic.t at line 11) # Tried to use 'Mail::Transport::POP3'. # Error: Insecure dependency in require while running with -T swi +tch at /usr/lib/perl5/5.8.0/i486-linux/IO/Socket.pm line 22. # Compilation failed in require at ../lib/Mail/Transport/POP3.pm line +10. # BEGIN failed--compilation aborted at 43pop3/01basic.t line 11. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. 43pop3/01basic.........NOK 2 # Failed test (43pop3/01basic.t at line 15) # Mail::Transport::POP3->can('deleted') failed # Mail::Transport::POP3->can('deleteFetched') failed # Mail::Transport::POP3->can('disconnect') failed # Mail::Transport::POP3->can('fetched') failed # Mail::Transport::POP3->can('folderSize') failed # Mail::Transport::POP3->can('header') failed # Mail::Transport::POP3->can('ids') failed # Mail::Transport::POP3->can('id2n') failed # Mail::Transport::POP3->can('message') failed # Mail::Transport::POP3->can('messages') failed # Mail::Transport::POP3->can('messageSize') failed # Mail::Transport::POP3->can('send') failed # Mail::Transport::POP3->can('sendList') failed # Mail::Transport::POP3->can('socket') failed # Mail::Transport::POP3->can('url') failed Method socket() is not defined for a Mail::Transport::POP3. 43pop3/01basic.........ok 3/14 Mail::Reporter::AUTOLOAD('Mail::Transp +ort::...') called at 43pop3/01basic.t line 44
anyhelp would be much appreciated. thanks --empika (a complete perl n00b)

Replies are listed 'Best First'.
Re: Mail::Box::POP3 fails install
by tphyahoo (Vicar) on Mar 18, 2005 at 13:19 UTC
    I don't have any experience with Mail, but what exact process did you do for the install? ppm? cpan? make install? And what operating system are you on? Windows? Nix? Be more specific, and the monks will have a better idea of what could have gone wrong.
      cheers for the reply. Its all sorted now tho :D i was using : perl -MCPAN -e 'install Mail::Box::POP3' but ended up getting the tarball and doing a : perl Makefile.pl && make && make install it seems to work fine now.