Fixed not reading all parts' content
This commit is contained in:
parent
7e112404a0
commit
6b82636fdd
|
@ -119,7 +119,7 @@ class MailReader(
|
||||||
private fun getAllMessageParts(part: Part): List<Part> {
|
private fun getAllMessageParts(part: Part): List<Part> {
|
||||||
contentClasses.add(part.content?.let { it::class })
|
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 multipart = part.content as Multipart
|
||||||
val parts = IntRange(0, multipart.count - 1).map { multipart.getBodyPart(it) }
|
val parts = IntRange(0, multipart.count - 1).map { multipart.getBodyPart(it) }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue