hi guys!
i need a shell or perl script which wud keep recent certain number of mails(say last 4 mails) from
mailbox of a mail user account and delete all other older mails from its mailbox.I m using linux enterprise server
and have user mailboxes in /var/mail/* .Does anyone of u have such a shell or perlscript which wud serve tht purpose?
help will b appreciated .