script to read mail on a mail server

Hi All,

Is there any way Unix shell script can directly read a mail on a mail server
(for eg. abc@xyz.com) and save it as a text file in a unix directory ?

Thanks
PRKS

---------- Post updated at 08:37 AM ---------- Previous update was at 08:36 AM ----------

I am using ksh

Perl has a pop3 module you could look into:

Net::POP3 - perldoc.perl.org