LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-31-2005, 08:33 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
IMAP - delete after certain date


hi there,

i'm thinking about changing over my e-mail server to imap but the only problem i think i'll have is storage space on the server, so i'm thinking about setting it to delete e-mail after a set date, for instance, once every 6 months delete the e-mails from the last 6 months. can someone tell me if thats possible and how i would go about doing it?

Also side note:

i've just install mailman on my RHEL box, is there a way i could i go about sup-scribing everyone in a certain group to a mailing list?

Last edited by paul_mat; 07-31-2005 at 08:35 PM.
 
Old 08-01-2005, 12:35 AM   #2
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
Doubful, putting that kind of policy in the server wouldn't be a good idea IMO. But you should be able to setup one of your clients to cleanup your mailbox for you.
 
Old 08-01-2005, 03:31 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I agree with Noth that this is not really a good idea... I think it will come back to haunt you later, unless you are 100% error-free as a human being

However, if you are dead set on it, you could create a fairly simple python script and set cron to run it. Just run through the mailbox and delete everything past a certain date. This would work well for a single user, or perhaps a handful of users, but not for a larger group (more maintenance when you add or remove mailboxes).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete/move/copy files of specific date imsajjadali Red Hat 26 11-07-2013 11:34 PM
Script to delete mail based on date gquiring Linux - General 8 05-08-2013 09:24 AM
Delete files for a particular changed date recursively? qwertyme Linux - Newbie 5 01-23-2009 10:41 AM
Delete files based on date stefaandk Linux - General 3 06-17-2005 02:20 AM
delete files date wise hardeep_ubhi Linux - General 1 11-16-2004 02:07 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration