1. Invocation

manitou-mgr is a Perl script that can perform management tasks and monitoring on a manitou-mail database.

manitou-mgr [--conf=/path/to/configfile (the same as manitou-mdx)]
[--quiet]
{[--create-database [(1) db-options] [(2) db-superuser-options]] | [--create-schema [(1) db-options]]
| [--hash-attachments] | [--merge-attachments] | [--print-size]}

(1) [--db-name=val] [--db-user=val] [--db-host=val] [--db-port=val]

(2) [--db-super-user=val] [--db-super-password=val]

--create-database

Create a new, empty PostgreSQL database to hold the mail data, and a dedicated database user that owns it. Both are named manitou by default.

--create-schema

Create all database objects to hold the mail data (should be applied to an empty database).

--upgrade-schema

Upgrade all database objects to a newer version.

--hash-attachments

Compute and update the fingerprints of the attachments in the database that have no fingerprint. This is done automatically by manitou-mdx during normal import so this option shouldn't be used except for troubleshooting or after an upgrade from a version older than 0.9.9.

--merge-attachments

Merge attachments that share the same fingerprint. This is done automatically by manitou-mdx and the user interface so this option shouldn't be used except for troubleshooting or after an upgrade from a version older than 0.9.9.

--print-size

Print the total database size, and a subset of the database tables with their sizes in bytes

Database options:

--db-name

Database name to create a new database (manitou by default).

--db-user

Database user that will own a newly created database (manitou by default).

--db-host

Database host name to connect to. By default, connect to a local database (by Unix socket).

--db-port

Database port number to connect to. By default, 5432.

--db-super-user

Database superuser to connect to in order to create a new database (postgres by default)

--db-super-password

Password of database superuser, empty by default.