Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Reading email on Exchangeby peschkaj (Pilgrim) |
on Jul 24, 2003 at 18:30 UTC ( [id://277624]=note: print w/replies, xml ) | Need Help?? |
You can indeed use the Net::POP3 module to take care of reading email on exchange. One thing to keep in mind while reading the email is that the retrieve command (RETR MSG_NUM, $pop->get(MSG_NUM) in perl) will remove the message from the server. In order to get the full text of the message from exchange without removing the message from the server, you will want to send a TOP command with the NUMLINES parameter set to 0. Example:
Hope that helps. If you make something idiot-proof, eventually someone will make a better idiot. I am that better idiot.
In Section
Seekers of Perl Wisdom
|
|