Renamed findAttachment() to getAttachment()
This commit is contained in:
parent
c65d99e35d
commit
d031b9414d
|
@ -140,7 +140,7 @@ open class EmailsFetcher(
|
||||||
val attachmentParts = parts.filter { it !in messageBodyParts }
|
val attachmentParts = parts.filter { it !in messageBodyParts }
|
||||||
|
|
||||||
val attachments = attachmentParts.mapNotNull { part ->
|
val attachments = attachmentParts.mapNotNull { part ->
|
||||||
findAttachment(part, status)
|
getAttachment(part, status)
|
||||||
}
|
}
|
||||||
|
|
||||||
val email = Email(
|
val email = Email(
|
||||||
|
@ -156,7 +156,7 @@ open class EmailsFetcher(
|
||||||
return email
|
return email
|
||||||
}
|
}
|
||||||
|
|
||||||
protected open fun findAttachment(messagePart: MessagePart, status: FetchEmailsStatus): EmailAttachment? {
|
protected open fun getAttachment(messagePart: MessagePart, status: FetchEmailsStatus): EmailAttachment? {
|
||||||
try {
|
try {
|
||||||
val part = messagePart.part
|
val part = messagePart.part
|
||||||
if (part.fileName == null) { // not an attachment
|
if (part.fileName == null) { // not an attachment
|
||||||
|
|
Loading…
Reference in New Issue