_createMailSummary(message) { const headerPart = message.parts[0].body const to = headerPart.to .flatMap(to => addressparser(to)) // The address also contains the name, just keep the email .map(addressObj => addressObj.address) const from = headerPart.from.flatMap(from => addressparser(from)) const subject = headerPart.subject[0] const date = headerPart.date[0] const {uid} = message.attributes return Mail.create(to, from, date, subject, uid) }