Provide Method for Archiving messages
Rem Archiveemail.bat
Rem Command Line Parameter %1 = email username / folder.
CD D:\MDAEMON\USERS\mydomain.com\%1\
REM Making Directories
MD D:\MDAEMON\USERS\mydomain.com\%1\Inbox2011.IMAP
MD D:\MDAEMON\USERS\mydomain.com\%1\Inbox2012.IMAP
MD D:\MDAEMON\USERS\mydomain.com\%1\Inbox2013.IMAP
REM Moving Files in Inbox
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1\Inbox.IMAP" /D -12/31/2011 /M *.msg /S /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2011.IMAP\"
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1\Inbox.IMAP" /D -12/31/2012 /M *.msg /S /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2012.IMAP\"
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1\Inbox.IMAP" /D -12/31/2013 /M *.msg /S /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2013.IMAP\"
REM Moving Files in Inbox
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1" /D -12/31/2011 /M *.msg /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2011.IMAP\"
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1" /D -12/31/2012 /M *.msg /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2012.IMAP\"
forfiles /P "D:\MDAEMON\USERS\mydomain.com\%1" /D -12/31/2013 /M *.msg /C "cmd /c move @path D:\MDAEMON\USERS\mydomain.com\%1\Inbox2013.IMAP\"
REM Moving Files Completed.
YOU NEED TO BUILD THIS FOR THE INBOX, SENT ITEMS, DELETED ITEMS FOLDERS!
Hello,
Thanks for sharing your idea. The current version of MDaemon includes similar functionality using the AccountPrune.exe file which can be found in the MDaemon\app directory. There are samples provided in the accountprune.txt file in the same directory.
Thanks,
Arron
-
Tray commented
I have a completed script that I currently use and it works wonders, but your idea engine will not let me post the whole script here. The script runs for multiple years all the way back to the year 2000 for all inbox, sent, and deleted folders. People need to know about this. I am seeing definite improvements after archiving someones folder. I believe that these types of functions need to be built into Mdaemon and that this should happen more automatically so that we don't have to deal with email client performance issues manually. The problem is not with MDaemon, but is with the Email Clients. However since MDaemon doesn't do anything about the issue, it doesn't help with the issues either.