garric 0 Newbie Poster

The MAIL command requires the user to press the 'Enter' key or 'n' to move onto the next message once the present message has been viewed. How do I achieve this in a shell script in order to automate the copying of successive mails onto different files. Can sumone please help...its urgent, please

Thanks ...