files = Promise.all(sentMailZip.filenames
.filter(fileName => !fileName.startsWith("__"))
.filter(fileName => !fileName.endsWith("/.DS_Store"))
.map(async fileName =>
({ fileName: fileName,
text: await sentMailZip.file(fileName).text()})
)
.map(async x =>
({...(await x),
...parseEmail((await x).text)
})
)
)