Re: [ILUG] IMAP & Perl

From: Colm MacCárthaigh (colmmacc at domain redbrick.dcu.ie)
Date: Mon 22 Jul 2002 - 18:15:19 IST


On Mon, Jul 22, 2002 at 05:06:41PM +0000, John Hegarty wrote:
> I have a perl script that needs to send mail . But becuase of a firewall i
> can only access an imap server which requires a username/password. Can
> this be done?

Some IMAP servers allow you to send mail upon it being copied into an
OUTGOING or OUTBOX mail folder, but it isnt exactly standard, IMAP
is much mroe commonly used for reading mail :)

If the IMAP server you are using supports mail being sent, then
there are plenty of perl modules to help out.

tara:/etc/ldap# perl -MCPAN -eshell

cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support enabled.

cpan> i /IMAP/
Going to read /usr/local/cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Going to read /usr/local/cpan/sources/modules/02packages.details.txt.gz

  Database was generated on Mon, 22 Jul 2002 07:52:00 GMT
Going to read /usr/local/cpan/sources/modules/03modlist.data.gz
Distribution D/DJ/DJKERNEN/Mail-IMAPClient-2.1.4.tar.gz
Distribution E/EE/EESTABROO/IMAP-Admin-1.6.1.tar.gz
Distribution F/FA/FABPOT/Unicode-IMAPUtf7-1.04.tar.gz
Distribution J/JP/JPAF/Net-IMAP-Simple-0.93.tar.gz
Distribution M/MI/MICB/AuthenIMAP.pm.gz
Distribution U/UG/UGEN/IMAPGet-0.1.tar.gz
Module Apache::AuthenIMAP (M/MI/MICB/AuthenIMAP.pm.gz)
Module IMAP::Admin (E/EE/EESTABROO/IMAP-Admin-1.6.1.tar.gz)
Module IMAPGet (U/UG/UGEN/IMAPGet-0.1.tar.gz)
Module Mail::IMAPClient (D/DJ/DJKERNEN/Mail-IMAPClient-2.1.4.tar.gz)
Module Mail::IMAPClient::BodyStructure (D/DJ/DJKERNEN/Mail-IMAPClient-2.1.4.tar.gz)
Module Mail::IMAPClient::Parse (D/DJ/DJKERNEN/Mail-IMAPClient-2.1.4.tar.gz)
Module Net::IMAP (K/KJ/KJOHNSON/NetxAP-0.02.tar.gz)
Module Net::IMAP::Simple (J/JP/JPAF/Net-IMAP-Simple-0.93.tar.gz)
Module PDF::API2::UniMap (A/AR/AREIBENS/PDF-API2-0.2.3.7_dev.tar.gz)
Module Unicode::IMAPUtf7 (F/FA/FABPOT/Unicode-IMAPUtf7-1.04.tar.gz)
16 items found

Any one of them could be worth a try :)

-- 
colmmacc at domain redbrick.dcu.ie        PubKey: colmmacc+pgp at domain redbrick.dcu.ie  
Web:                                 http://devnull.redbrick.dcu.ie/ 


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:01 GMT