Usage
The program has the following functions:
Archiving of message files | ||
Restoration of message files | ||
Reindexing of message folders | ||
Sorting address book |
Archiving
The program takes the filter parameters the user specifies on either the command line or in the configuration file (or both). It creates a file called backup.bag which contains all the folder.bag entries for the files which are being archived. The archive process will archive this file along with all the message files (and INI files for the folders). If requested the program will delete the archived files and update the "folder.bag" files for each folder.
Restoration
The program takes the filter parameters specified and the archive file specified on the command line. It unzips the backup.bag file and examines it applying the filters to each entry. After this it will, if necessary, create a folder in each account called Restored Files which will contain all files restored for that account. Inside this folder it will recreate the folder structure which existed at the time the archive was created and restore the files to the same folder (inside the Restored Files) where they were before. If query mode is on the user will be asked about each file before it is restored.
If the account being restored does not exist then the account directory and the acct.ini file will be restored.
If you perform an archive after restoring files, all the files in Restored Files folder will be eligible for archiving again.
Reindexing
The program takes the specified accounts and ignores all other parameters. It will then re-index all folders in the specified accounts. It reads each file, and if a folder.bag entry exists for that file it will preserve the file priority and status. It will rewrite each folder.bag file in each directory with updated information.
Sorting
The program will sort the address book using the specified field. It currently does an ascending sort only.