Added hint that parallelization didn't work
This commit is contained in:
parent
2b3c3fa5fa
commit
189b1b37ff
|
@ -89,6 +89,7 @@ class MailReader(
|
||||||
return emptyList()
|
return emptyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tried to parallelize reading messages by reading them on multiple thread but that had no effect on process duration (don't know why)
|
||||||
private fun listAllMessagesWithEInvoiceInFolder(folder: Folder): List<MailWithInvoice> = folder.messages.mapNotNull { message ->
|
private fun listAllMessagesWithEInvoiceInFolder(folder: Folder): List<MailWithInvoice> = folder.messages.mapNotNull { message ->
|
||||||
try {
|
try {
|
||||||
if (message.isMimeType("multipart/*")) {
|
if (message.isMimeType("multipart/*")) {
|
||||||
|
|
Loading…
Reference in New Issue