Any script for delete messages from server (physical files and DB entries)?

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
itsmesri
Normal user
Normal user
Posts: 59
Joined: 2014-11-07 08:30

Any script for delete messages from server (physical files and DB entries)?

Post by itsmesri » 2016-10-23 09:15

I already took backup of all emails for all users. Now I am trying to cleanup database mail IDs and file storage on server level for each user/All users that way I don't need to increase their size every time. I would like to run script from "From date" to "To Date" archive/delete all users emails.

Please suggest me.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8861
Joined: 2011-09-08 17:48

Re: Any script for delete messages from server (physical files and DB entries)?

Post by jimimaseye » 2016-10-23 09:21

viewtopic.php?f=21&t=28139

Scroll down for the emailclearup.vbs script.

State the folders you want to clear and the detention period in days. It will then look in those folders and delete anything older.
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

itsmesri
Normal user
Normal user
Posts: 59
Joined: 2014-11-07 08:30

Re: Any script for delete messages from server (physical files and DB entries)?

Post by itsmesri » 2016-10-25 22:08

Is Inbox folder name inbox?

User avatar
jimimaseye
Moderator
Moderator
Posts: 8861
Joined: 2011-09-08 17:48

Re: Any script for delete messages from server (physical files and DB entries)?

Post by jimimaseye » 2016-10-25 23:06

It is however it appears on your email client (but I think it is case insensitive anyway)
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

Post Reply