aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/importer/importer.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/importer/importer.go b/pkg/importer/importer.go
index e83bd9f..8e4f10c 100644
--- a/pkg/importer/importer.go
+++ b/pkg/importer/importer.go
@@ -84,7 +84,14 @@ func RecomputeThreads() {
fmt.Println("Init thread computation...")
filepath.Walk(config.MailDirPath(), initImport)
+ fmt.Println("Import thread references into database...")
+ overallLength := len(mails)
+ counter := 0
for _, mail := range mails {
+ if counter % 1000 == 0 {
+ fmt.Println("Imported thread references for " + strconv.Itoa(counter) + " of " + strconv.Itoa(overallLength) + " mails.")
+ }
+ counter++
insertReferencesToMail(mail.RawReferences, mail.Id, mail.From)
}