Sure. It's for IMail 7.07 so there's no queuemgr as I mentioned.
<quote> echo off setlocal set srcdir=\Imail\users\archive set archdir=\archive\Imail set archlog=%srcdir%\archivemail.log if not exist %srcdir%\main.mbx goto end pushd %srcdir% rem returns yyyymmddhhmm call getdatetime echo %datetime% >>%archlog% rem returns yyyymmdd set archdate=%datetime:~0,8% echo stop smtp service >>%archlog% net stop smtpd32 >>%archlog% echo rename mailbox >>%archlog% ren main.mbx archive%archdate%.mbx >>%archlog% ren spam.mbx spam%archdate%.mbx >>%archlog% del main.uid echo start smtp service >>%archlog% net start smtpd32 >>%archlog% echo mbx checksum >>%archlog% fsum -md5 archive%archdate%.mbx >archive%archdate%.mbx.md5 type archive%archdate%.mbx.md5 >>%archlog% echo compress >>%archlog% zip -9j archive%archdate%.mbx.zip archive%archdate%.mbx >>%archlog% if not exist archive%archdate%.mbx.zip goto skipzip echo zip checksum >>%archlog% fsum -md5 archive%archdate%.mbx.zip >archive%archdate%.mbx.zip.md5 type archive%archdate%.mbx.zip.md5 >>%archlog% move archive%archdate%.mbx.zip %archdir% >>%archlog% move archive%archdate%.mbx.zip.md5 %archdir% >>%archlog% del archive%archdate%.??? archive%archdate%.???.md5 :skipzip popd :end </quote>
adamc
Jeff Pereira wrote:
Adam -
Would you be willing to share that script ???
Thank you.
Jeff ----- Original Message ----- From: "Adam Campbell" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, March 21, 2005 4:05 PM Subject: Re: [IMail Forum] OT: Archiving Company email
I have all messages copied to an archive account.
At midnight, a script (archivemail.bat) runs that stops smtpd32 and queuemgr services, renames main.mbx, then starts the services. It renames main.mbx to archive{yyyymmdd}.mbx, then compresses it.
Periodically, I burn the archived files to CD.
adamc
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
