aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'archives.go')
-rw-r--r--archives.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/archives.go b/archives.go
index 7cbba67..e9adb99 100644
--- a/archives.go
+++ b/archives.go
@@ -23,6 +23,7 @@ func main() {
fullImport := flag.Bool("full-import", false, "Start a full import, importing all mails")
incrementalImport := flag.Bool("incremental-import", false, "Start a incremental import, importing only new mails")
+ computeThreads := flag.Bool("compute-threads", false, "Recompute the thread references that are used to link messages")
serve := flag.Bool("serve", false, "Start serving the web application")
flag.Parse()
@@ -35,6 +36,10 @@ func main() {
importer.IncrementalImport()
}
+ if *computeThreads{
+ importer.RecomputeThreads()
+ }
+
if *serve {
app.Serve()
}