Koozali.org: home of the SME Server

Bulk mail delete ?

Offline david000

  • *****
  • 203
  • +0/-0
Bulk mail delete ?
« on: Yesterday at 04:30:41 PM »
Hi,

I'm looking at implementing a mail retention policy where we keep mail for x years.  I've fully decided but as we're in the UK 7 years might be reasonable.

At the moment we have mail going back to 2013 so I need to a way to delete anything on the system prior a given date. Manually doing that in round cube looks to be a bit of a PITA.

We use webmail \ roundcube to access mail on our local SME Server.

Any suggestions on how to best do this ?

Also, if there are UK users I'd be interested in your take on retention policy.

Offline ReetP

  • *
  • 3,946
  • +6/-0
Re: Bulk mail delete ?
« Reply #1 on: Today at 10:31:16 AM »
Hi,

I'm looking at implementing a mail retention policy where we keep mail for x years.  I've fully decided but as we're in the UK 7 years might be reasonable.

At the moment we have mail going back to 2013 so I need to a way to delete anything on the system prior a given date. Manually doing that in round cube looks to be a bit of a PITA.

Any suggestions on how to best do this ?

Think these are two of the more well known apps for managing imap accounts - sure there are others:

https://imapsync.lamiral.info/
https://github.com/lefcha/imapfilter


You could also possibly do a fancy bash script to find and delete files over X age.

eg

https://unix.stackexchange.com/questions/194863/delete-files-older-than-x-days


Quote
Also, if there are UK users I'd be interested in your take on retention policy.

I don't delete anything. Storage is cheap..... :-)

If I did I'd cold archive anything over say 10. You could use imapsync to a safe space and then back that up to a secure medium.

Others may have other thoughts!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline david000

  • *****
  • 203
  • +0/-0
Re: Bulk mail delete ?
« Reply #2 on: Today at 10:42:34 AM »
Think these are two of the more well known apps for managing imap accounts - sure there are others:

https://imapsync.lamiral.info/
https://github.com/lefcha/imapfilter


You could also possibly do a fancy bash script to find and delete files over X age.

eg

https://unix.stackexchange.com/questions/194863/delete-files-older-than-x-days


I don't delete anything. Storage is cheap..... :-)

If I did I'd cold archive anything over say 10. You could use imapsync to a safe space and then back that up to a secure medium.

Others may have other thoughts!

Thanks, imapsync might be a plan, especially if I can rig that on a windows machine.

Offline ReetP

  • *
  • 3,946
  • +6/-0
Re: Bulk mail delete ?
« Reply #3 on: Today at 03:07:32 PM »
Thanks, imapsync might be a plan, especially if I can rig that on a windows machine.

Sounds like a plan!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation