External Exit/Hook Examples
This is an example of how to use an external command file to call the archiver from within PMMail.
For OS/2 you will create a Rexx command file. For Windows you will create a batch file.
OS/2 Rexx command file.
Place the following into the entry field:
pmclose.cmd
DOS/Windows batch file
Place the following into the entry field:
pmclose.bat
In the pmclose.cmd/pmclose.bat file:
archiver /V 2 /A 100 /a jbayer0.act
archiver /V 2 /A 10 /a jbayer1.act
archiver /i alias
archiver /I
What it does:
This calls the archiver four times. The first time it will archive all files in the jbayer0.act directory which are at least 100 days old:
/A 100 Specifies file age
/a jbayer0.act Specifies account directory
The second time it will archive all files in the jbayer1.act which are at least 10 days old:
/A 10 Specifies file age
/a jbayer1.act Specifies account directory
The third time it will sort the address book file by alias:
/i alias
The fourth time it will reindex all folders in the PMMail directory:
/I