Perl Modules

davidiwharper

New Email
Hello

I am looking at using the IMAP Tools in a shared hosting environment, and want to know what Perl modules (and versions, if there are minimum versions) are required.

The host is running Debian 6.0.8 with Perl version 5.10.1.

Thanks!
David
 

EQ Admin

EQ Forum Admin
Staff member
Hi David,

Rick is the guy for IMAP Tools but I might be able to help with a quick answer.

Is there a specific script you're asking about? I can check the top of the script.

You're using a newer version of perl than me for the tools, that's good.

Actually I'm surprised I linked them to an old perl 5.8.x

For example, the imapsync.pl script requires the following:

use Socket;
use IO::Socket;
use IO::Socket::INET;
use FileHandle;
use Fcntl;
use Getopt::Std;
use MIME::Base64 qw( encode_base64 );

:welcome: to Email Questions!
 

rfs9999

IMAP Tools
Hi David,

Any modern version of Perl will work (eg 5.6 or later). As for modules:

Standard modules (included in most Perl distributions)

Socket
FileHandle
Fcntl
Getopt::Std
IO::Socket

Ones you might have to install:

Encode::IMAPUTF7
IO::Socket::SSL (if you want to do SSL connections)

As for the versions I don't think you have to really worry about them. Nothing recent has been changed in the IMAP Tools with regard to the module versions so you should be OK there.

-Rick
 

rfs9999

IMAP Tools
> use MIME::Base64

Yeah, I missed that one. (It's part of the standard Perl distro). Thanks for catching it, Ray.

-Rick
 

rfs9999

IMAP Tools
Dave,

One more note. You're no doubt aware of this but for the benefit of others who might face this issue...

If the hosting service doesn't have a particular module you need and are unwilling to add it you can install the module into a local directory. Then just put 'use lib <dir>' into the IMAP script so Perl knows to look in that directory for the module.

-Rick
 

davidiwharper

New Email
Thanks for the fast responses everyone. I was not aware I could install stuff without root privileges, that is very helpful indeed. I did a quick Google search with this new found knowledge and also found the following which will might come in handy as well: Installing Perl Modules as a Non-Root User LG #139

@popowich: I'm specifically interested in the imapcopy.pl and imapsync.pl scripts.
 

EQ Admin

EQ Forum Admin
Staff member
Hi David,

The imapsync.pl requirements are in my post above.

Here are the requirements for imapcopy.pl

use Socket;
use FileHandle;
use Fcntl;
use Getopt::Std;
use IO::Socket;
eval 'use Encode qw/encode decode/';
eval 'use Encode::IMAPUTF7 qw/encode decode/';
 
Top