Fixed not reading all parts' content

This commit is contained in:
dankito 2024-11-21 20:27:05 +01:00
parent 7e112404a0
commit 6b82636fdd
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class MailReader(
private fun getAllMessageParts(part: Part): List<Part> {
contentClasses.add(part.content?.let { it::class })
return if (part.content is Multipart) {
return if (part.isMimeType("multipart/*")) {
val multipart = part.content as Multipart
val parts = IntRange(0, multipart.count - 1).map { multipart.getBodyPart(it) }