Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-31-2005, 08:33 PM   #1
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
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
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).


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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 AM.

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