talking to an IMAP server with perl

talking to an IMAP server with perl

am 11.09.2008 17:30:12 von Bryan R Harris

I have a weird problem with our Lotus Notes IMAP server -- certain spam
messages cause our email clients to not download that message, nor any
subsequent ones.

So I thought I'd write a perl script that I could run that would go onto the
IMAP server and look for messages with the specific traits of that spam that
cause the problems.

The question is, how hard is it to get perl to talk to an IMAP server? I've
done it via telnet, but that requires installing a module which I'd prefer
not to do unless I have to. Are there any built-in modules that might help?

Any ideas?

- Bryan



--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: talking to an IMAP server with perl

am 12.09.2008 03:46:35 von Jeff Pang

2008/9/11 Bryan R Harris :

>
> The question is, how hard is it to get perl to talk to an IMAP server? I've
> done it via telnet, but that requires installing a module which I'd prefer
> not to do unless I have to.


>Are there any built-in modules that might help?
>

No. The closest module for that purpose is IO::Socket, you may build a
module based on IO::Socket to act as an IMAP client.

Telnet is also not good for it, you may try Net::IMAP:
http://search.cpan.org/~kjohnson/NetxAP-0.02/Net/IMAP.pm

btw, why don't run a spamassassin before the MTA? spamassassin is
primarily written with Perl, with very good antispam capibility.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: talking to an IMAP server with perl

am 12.09.2008 08:06:02 von Deviloper

------=_Part_12087_452458354.1221199562475
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

There are a LOT of Moduls at cpan to talk with IMAP-Accounts & Servers,
so I guess developing a tool with your needs should not be such a large pro=
blem. (You don´t have to tell your boss.)=20

(Some of this moduls only do the basic stuff.)

http://search.cpan.org/author/MARKOV/Mail-IMAPClient-3.10/li b/Mail/IMAPClie=
nt.pod

http://search.cpan.org/author/CFABER/Net-IMAP-Simple-1.17/li b/Net/IMAP/Simp=
le.pm

http://search.cpan.org/author/KJOHNSON/NetxAP-0.02/Net/IMAP. pm

http://search.cpan.org/author/ROBM/Mail-IMAPTalk-1.03/IMAPTa lk.pm

http://search.cpan.org/author/EESTABROO/IMAP-Admin-1.6.6/Adm in.pm


Bryan R Harris hat am 11. September 2008 um 1=
7:30 geschrieben:

>=20
>=20
> I have a weird problem with our Lotus Notes IMAP server -- certain spam
> messages cause our email clients to not download that message, nor any
> subsequent ones.
>=20
> So I thought I'd write a perl script that I could run that would go onto =
the
> IMAP server and look for messages with the specific traits of that spam t=
hat
> cause the problems.
>=20
> The question is, how hard is it to get perl to talk to an IMAP server?=C2=
=A0 I've
> done it via telnet, but that requires installing a module which I'd prefe=
r
> not to do unless I have to.  Are there any built-in modules that mig=
ht help?
>=20
> Any ideas?
>=20
> - Bryan
>=20
>=20
>=20
> --=20
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>=20
>
------=_Part_12087_452458354.1221199562475--