I know, many people have posted several scripts to delete unwanted messages from a domain or automatically after n-days
i'm running hmailserver 4.4.1-B273 and i'm very satisfied.
But in some cases i need to control Hmailserver from a GUI (remote if possible) and launch Scripts for ordinary maintenance.
So i've searched the forum for a script to delete messages in vbscript, and i've integrated in a VB6 application
it search for all accounts, all messages and delete messages 30days old. It delete the eml file from path using FileSystemObject from scrun.dll
during the process my code log into a file pursued actions.
it's a first proof and i've used 3,4 times and is working fine ; the routine may have some bugs, so i consider
to use this sample as pratice.
I'm planning to port this in ASP.NET
to do my action from a web interface
I think this can be interesting for newbies of scripting (VB6 have an integrated debugger) and many other people
so I post the source project
Comments are appreciated
Another Way to delete old Messages in VB6
-
- New user
- Posts: 1
- Joined: 2009-07-06 20:08
Another Way to delete old Messages in VB6
- Attachments
-
- HMailDeleteMessages.zip
- (3.03 KiB) Downloaded 938 times