aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-06-24 21:54:58 +0000
committerMax Magorsch <arzano@gentoo.org>2020-06-24 21:54:58 +0000
commitfea5c85fc458a521b3eff9e48cce55f435a4c9f4 (patch)
treeb9b17e847f451d33c0e5e6d24769c6a1253e49ad /archives.go
parentFix the computation of replies to a message (diff)
downloadarchives-fea5c85fc458a521b3eff9e48cce55f435a4c9f4.tar.gz
archives-fea5c85fc458a521b3eff9e48cce55f435a4c9f4.tar.bz2
archives-fea5c85fc458a521b3eff9e48cce55f435a4c9f4.zip
Add an option to recompute the thread references
Signed-off-by: Max Magorsch <arzano@gentoo.org>
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()
}