+This program generates SQL statements that aid in importing
+SquirrelMail user configuration settings from files to
+those in a database.
+
+WARNING: this script is experimental. We recommend that
+you not use it when logged in as a privileged user (such
+as root). Also, ALWAYS back up your data directory before
+using this script.
+
+Usage: $prog --data_dir=<path to data directory> \\
+ [--delete] \\
+ [--abook] [--sig] [--pref] \\
+ [--user=<username1[,username2[,username3]...]>] \\
+ [--abookdb=<database>] \\
+ [--abook_table=<table name>] \\
+ [--abook_owner=<field name>] \\
+ [--abook_nickname=<field name>] \\
+ [--abook_firstname=<field name>] \\
+ [--abook_lastname=<field name>] \\
+ [--abook_email=<field name>] \\
+ [--abook_label=<field name>] \\
+ [--prefdb=<database>] \\
+ [--pref_table=<table name>] \\
+ [--pref_user=<field name>] \\
+ [--pref_key=<field name>] \\
+ [--pref_value=<field name>] \\
+ [--verbose] [-v]
+ [--help] [-h]
+
+When none of --abook, --sig or --pref is specified, all three
+will be assumed.
+
+If --user is not specified, data for all users will be extracted.
+
+--data_dir is not optional and must define the path to the
+ SquirrelMail data directory. If it is not given,
+ this help message is displayed.
+
+--delete causes the inclusion of SQL statements that remove all
+ previous setting values from the database for each user.
+ This setting obeys --user, --abook, --pref and --sig.
+ This setting is useful when re-importing settings.
+
+--abook causes the inclusion of SQL statements that import user
+ address book data.
+
+--sig causes the inclusion of SQL statements that import user
+ (email) signature data.
+
+--pref causes the inclusion of SQL statements that import all
+ other general user preference data.
+
+--user can be used to limit the users for which to extract data.
+ One or more (comma-separated) usernames can be given.
+
+--abookdb can be used to specify a custom database name for the
+ address book database. If not given, "squirrelmail"
+ is used.
+
+--abook_table can be used to specify a custom address book table
+ name. If not given, "address" is used.
+
+--abook_owner can be used to specify a custom field name for the
+ "owner" field in the address book database table
+ (the username goes in this field). If not given,
+ "owner" is used.
+
+--abook_nickname can be used to specify a custom field name for the
+ "nickname" field in the address book database table.
+ If not given, "nickname" is used.
+
+--abook_firstname can be used to specify a custom field name for the
+ "firstname" field in the address book database table.
+ If not given, "firstname" is used.
+
+--abook_lastname can be used to specify a custom field name for the
+ "lastname" field in the address book database table.
+ If not given, "lastname" is used.
+
+--abook_email can be used to specify a custom field name for the
+ email field in the address book database table
+ (the actual email address goes in this field). If
+ not given, "email" is used.
+
+--abook_label can be used to specify a custom field name for the
+ "label" field in the address book database table.
+ If not given, "label" is used.
+
+--prefdb can be used to specify a custom database name for the
+ user preferences database. If not given, "squirrelmail"
+ is used.
+
+--pref_table can be used to specify a custom preference table
+ name. If not given, "userprefs" is used.
+
+--pref_user can be used to specify a custom field name for the
+ "user" field in the preferences database table
+ (the username goes in this field). If not given,
+ "user" is used.
+
+--pref_key can be used to specify a custom field name for the
+ key field in the preferences database table (the
+ preference name goes in this field). If not given,
+ "prefkey" is used.
+
+--pref_value can be used to specify a custom field name for the
+ value field in the preferences database table
+ (the preference value goes in this field). If not
+ given, "prefval" is used.
+
+--verbose Displays extra diagnostic output on STDERR. If you
+ redirect standard output to a file, verbose output
+ will not interfere with other normal output.
+
+-v Same as --verbose.
+
+--help Displays this usage information.
+
+-h Same as --help.