Command Line Syntax

Usage: archiver [parameters] [archive file name]

The program must either be run from the main PMMail directory, or the main directory must be specified using the /p parameter.

This program REQUIRES InfoZip and InfoUnzip.

If no archive file is specified then the program will create a file in the current directory called ARCHIV??.ZIP, where the question marks will be replaced by a sequential series of numbers.

A specified archive file name can have question marks embedded, and the question marks will be replaced as above.

The archive file is NOT optional when doing a restore.

ANY parameter on the command line will totally override the corresponding parameter in the configuration file. You can have multiple entries for some of the command line parameters, but if you even specify one of them on the command line the program will totally ignore any of the same parameters in the configuration file.

Command Line Parameters - either a dash, plus, or forward slash are acceptable. The parameters ARE case sensitive.

Location parameters Multiple
Allowed
Description
/c configFileDirectory Specify the location of the configuration file (archive.cfg).
/c configFile Specify the complete path of the configuration file.
/c NONE Do not use a configuration file.
/p pmmaildirname If no accounts specified then will perform work on all accounts.
/a accountdirname Yes If /p not specified then either the complete path is required, or the program must be run from the PMMail directory (where the accounts are).

/b accountName Yes Full or partial name of account.

These parameters are currently inclusive or'd together. In other words, if ANY parameter is met then the file will be archived/unarchived. This can be changed by specifying the /R option on the command line, or the AllRequired parameter in the configuration file.

Archive/Unarchiving parameters Multiple
Allowed
Description
Filter Options
/f folderdirname Yes Directory name of the folder directory containing messages to be archived or restored.
/G foldername Yes PMMail text name of folder containing messages to be archived or restored.
/A age in days Anything older than this gets archived.
/d datecutoff Specifies the message date at which to start archiving message. Format must be [yy]yy/mm/dd. This uses the date the message was saved on the system.
/D messageDateCutoff Same as /d except uses the date in the message instead of the date the message was saved.
/t timecutoff Specifies the message at which to start archiving. This must be used with either the /d (dateCutOff) or /D (messageDateCutoff) options. The format must be hh:mm, although the colon is optional.
/s subject Yes Subject match. This will match the beginning of the subject. The match will not be case sensitive.
/S subject Yes Partial subject match. This will match anywhere in the subject. The match will not be case sensitive.
/F address Yes From address.
/T address Yes To address.
Other options
/N Delete files after archive process is complete.
/V 1 Verbose mode. Tell me what you are doing
/V 2 Verbose mode, but do not delete. This overrides the /N option.
/V 3 Verbose mode, but do not archive or delete.
/V 4 Show all specified options and exit
/O [filename] Send a copy of all output to the specified file. If no file specified then send output to file "archiv??.rpt".
/q If verbose mode is specified then make the zip/unzip operations quiet. If no verbose mode is specified then make the zip/unzip operations noisy.

/Q Query mode for restore only.
/r Restore files.
/R Required. Make all filters required.
/o Restore files to original location.
Folder and Sort Parameters
/i [option] Option to specify sorting of address book.

Option can be one of:
name
alias
email
company

If no option is specified then the default sort is by alias.

/I Option to specify reindexing.