Cleanup storage directory [message #126896] |
Wed, 06 January 2016 11:06  |
itn-nieuwdorp
Messages: 14 Registered: December 2014 Location: Nieuwdorp - The Netherlan...
|
|
|
|
How can i cleanup my storage directory?
I like to remove every email bigger then 2mb. Inbox/outbox etc.
How to do this.
I have a win10 64bits installation.
|
|
|
Re: Cleanup storage directory [message #126919 is a reply to message #126896] |
Wed, 06 January 2016 19:06   |
Bud Durland
Messages: 586 Registered: December 2013 Location: Plattsburgh, NY
|
|
|
|
This kind of "behind the scenes" action should be approached with a certain amount of caution, as much mayhem can ensue when things are done outside control of the Mail server.
That said, you will have to come up with some kind of script that will walk the store folder looking for .eml files that are larger than your target size. I've not tried it, but you may be able to use RoboCopy to move the large files from the mail store to a temporary location, then delete the temp location.
|
|
|
Re: Cleanup storage directory [message #126941 is a reply to message #126919] |
Thu, 07 January 2016 09:10  |
itn-nieuwdorp
Messages: 14 Registered: December 2014 Location: Nieuwdorp - The Netherlan...
|
|
|
|
Thanks, or are there functions within kerio to solve this?
I try to use the following command now:
Robocopy "D:\Mailserver\mail\" "G:\Temp" *.eml /S /mov /MIN:2000000 /MINAGE:720 /R:10 /W:5
|
|
|