summaryrefslogtreecommitdiff
path: root/migrationutility/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'migrationutility/main.cpp')
-rw-r--r--migrationutility/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/migrationutility/main.cpp b/migrationutility/main.cpp
index 2e109d8..50d4cc4 100644
--- a/migrationutility/main.cpp
+++ b/migrationutility/main.cpp
@@ -90,6 +90,7 @@ int main(int argc, char *argv[])
options.add("statefile", ki18n("Resume from migration-state file"), "/tmp/kolabmigration.state");
options.add("skipFolder <sourcefolder>", ki18n("Source-folders to skip. Uses a simple \"contains\"-filter. Can be stated multiple times."));
options.add("objectType <type>", ki18n("Objects types to migrate (MAIL, CONTACTS, EVENTS, TASKS). By default all types are migrated. Can be stated multiple times. Currently only implemented for the google source type."));
+ options.add("regextrans2 <s/MATCH/REPLACE/>", ki18n("Allows to translate target folder names. Use --dry to figure out the names that are used by default."));
options.add("from <type>", ki18n("Source host type (kolab2, kolab3, exchangeimap, google)"));
@@ -212,6 +213,9 @@ int main(int argc, char *argv[])
if (args->isSet("wipeTargetFolders")) {
kolabServer->setWipeTargetFolders(true);
}
+ if (!args->getOptionList("regextrans2").isEmpty()) {
+ kolabServer->setRegextrans(args->getOptionList("regextrans2"));
+ }
if (args->isSet("statefile")) {
sourceServer->setStatefile(args->getOption("statefile"));
}