diff options
author | 2020-06-19 17:45:02 +0200 | |
---|---|---|
committer | 2020-06-19 17:45:02 +0200 | |
commit | a9dff0fcb015c0173e253ae7c50cf490509040d2 (patch) | |
tree | 8ff9f75e14e403fe5dfa21d4bcc28858b90b8270 /pkg/importer/importer.go | |
parent | Add all public lists (diff) | |
download | archives-a9dff0fcb015c0173e253ae7c50cf490509040d2.tar.gz archives-a9dff0fcb015c0173e253ae7c50cf490509040d2.tar.bz2 archives-a9dff0fcb015c0173e253ae7c50cf490509040d2.zip |
Only import messages of public lists for now
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'pkg/importer/importer.go')
-rw-r--r-- | pkg/importer/importer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/importer/importer.go b/pkg/importer/importer.go index a989238..379332c 100644 --- a/pkg/importer/importer.go +++ b/pkg/importer/importer.go @@ -14,7 +14,9 @@ func FullImport() { return err } if !info.IsDir() && getDepth(path, config.MailDirPath()) >= 1 { - importMail(info.Name(), path, config.MailDirPath()) + if isPublicList(path) { + importMail(info.Name(), path, config.MailDirPath()) + } } return nil }) |