Script needed

  • taqqi
  • Born
  • Born
  • No Avatar
  • Joined: Oct 12, 2005
  • Posts: 3
  • Status: Offline

Post October 13th, 2005, 6:55 am

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 .
thnx

shahzad
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 13th, 2005, 6:55 am

  • eWebtricity
  • Novice
  • Novice
  • User avatar
  • Joined: Aug 22, 2005
  • Posts: 23
  • Loc: Tampa, Florida
  • Status: Offline

Post October 14th, 2005, 2:05 pm

OK I'll bite. Why would you want to delete all emails except for the last 4 ?

And what is "linux enterprise server" ?
  • taqqi
  • Born
  • Born
  • No Avatar
  • Joined: Oct 12, 2005
  • Posts: 3
  • Status: Offline

Post October 18th, 2005, 10:26 pm

our mail users often request cleaning of their mail boxes in such a way tht they want mails prior to certain number of their mails whus b delete.
4 is just an example....script wud b customizable so tht i can customize it according to mailusers request. mail server keeps unnecessary mails which overloads it...thts y i wana make it as light as possible..
shaz

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 47 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.