hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : How to quickly delete all emails older than dd.mm.yyyy
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

How to quickly delete all emails older than dd.mm.yyyy

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-25-2005, 08:59 AM
motyl motyl is offline
Junior Guru Wannabe
 
Join Date: Feb 2005
Location: Galway, Ireland
Posts: 33
Question

How to quickly delete all emails older than dd.mm.yyyy


Hi gurus,

My Outlook is going mad and decided to download all emails from server again (10400 emails!!) which would create extreme mess in my emails.

Is there any way how to quickly delete emails older than some date specified? I tried to do it manually through Horde & Squirel webmails but that would take me a week... It's too slow because Inbox file has 36MB.

Any ideas? I have full root access through SSH.

Thanks a million,
motyl

Reply With Quote


Sponsored Links
  #2  
Old 02-25-2005, 01:46 PM
linux-tech linux-tech is offline
<?require_once("life")?>
 
Join Date: Sep 2002
Location: inside your network
Posts: 9,548
Short answer? No

Best answer? Don't check "leave mail on server", or if you DO check this, make sure that the option for "remove from server when mail is deleted" is checked.

Now, what you CAN do is move the inbox to something, say, inbox.old and restart your email server. The next mail that comes to you should automatically create a new inbox.

There's really no way to delete mail like you're requesting here, unfortunately.

__________________
Linux Tech Networks Reliable, Affordable Linux administration and monitoring since 2002

Reply With Quote
  #3  
Old 02-25-2005, 02:16 PM
S2 Web Design S2 Web Design is offline
Junior Guru
 
Join Date: May 2001
Location: Houston, TX
Posts: 195
You can install mutt if it's not installed already and use it to delete messages older than a specified date. Assuming you have mutt setup to use the correct inbox, use the `D` command in mutt to delete messages by regular expression. When prompted to delete messages, use `~d >60d` (without quotes) for example to delete messages older than 60 days. You can use d for days, m for month, w for week, or y for years in the expression. Once this is done, simply quit mutt and save/purge.

If you're using the maildir format for your mail repository isntead of the standard mailbox/inbox format, you can of course manipulate the find command and delete messages that way since each message has it's own file.

__________________
Houston Web Design
Houston SEO

Reply With Quote
Sponsored Links
  #4  
Old 02-25-2005, 03:52 PM
andy18 andy18 is offline
Web Hosting Master
 
Join Date: Jul 2002
Location: Malaysia
Posts: 698
if u r using cpanel assuming, login to the cpanel > manage email account > there is an option just beside the email accout call "Aging" , set this and it will auto purge the emails for you.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Hostway Offers Compliant Ready Upgrade for Hosted Exchange Web Hosting News 2012-07-30 14:26:14
Are You Already Hosting the Next Megaupload? with David Snead - HostingCon 2012 Web Hosting News 2012-07-16 14:51:49
eleven Report for June Sees 927.4 Percent Rise in Virus-Infected Emails Web Hosting News 2012-06-07 15:33:50
eleven Report Finds Online Casinos Most Popular Spam Topic in November Web Hosting News 2011-12-12 21:58:22
Security Firm eleven Report Finds 89 Percent Spam Increase Since July Web Hosting News 2011-10-12 19:04:26


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?