Script needed

  • taqqi
  • Born
  • Born
  • taqqi
  • Posts: 3

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • eWebtricity
  • Novice
  • Novice
  • User avatar
  • Posts: 23
  • Loc: Tampa, Florida

Post 3+ Months Ago

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
  • taqqi
  • Posts: 3

Post 3+ Months Ago

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 96 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.