Perl Modules

Discussion in 'IMAP Tools' started by davidiwharper, Jan 13, 2014.

  1. davidiwharper

    davidiwharper New Email

    Joined:
    Jan 13, 2014
    Messages:
    3
    Likes Received:
    0
    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
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    9,001
    Likes Received:
    120
    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!
     

  3. rfs9999

    rfs9999 IMAP Tools

    Joined:
    Oct 27, 2013
    Messages:
    114
    Likes Received:
    6
    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
     
  4. rfs9999

    rfs9999 IMAP Tools

    Joined:
    Oct 27, 2013
    Messages:
    114
    Likes Received:
    6
    > use MIME::Base64

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

    -Rick
     
  5. rfs9999

    rfs9999 IMAP Tools

    Joined:
    Oct 27, 2013
    Messages:
    114
    Likes Received:
    6
    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
     
  6. davidiwharper

    davidiwharper New Email

    Joined:
    Jan 13, 2014
    Messages:
    3
    Likes Received:
    0
    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.
     
  7. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    9,001
    Likes Received:
    120
    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/';
     
  8. davidiwharper

    davidiwharper New Email

    Joined:
    Jan 13, 2014
    Messages:
    3
    Likes Received:
    0
    Bought, installed, works like a charm. Thanks for your help.
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...