1
0

Detect Gmail labels from All Mail mbox export

This commit is contained in:
Michal Horejsek
2020-10-08 15:03:03 +02:00
parent 719d369c2a
commit ef85c8df24
16 changed files with 461 additions and 73 deletions

View File

@ -160,4 +160,13 @@ func sanitizeFileName(fileName string) string {
}
return r
}, fileName)
func appendIfNew(list []string, newItem string) []string {
for _, item := range list {
if item == newItem {
return list
}
}
return append(list, newItem)
}