Renamed findAttachment() to getAttachment()

This commit is contained in:
dankito 2024-11-27 03:35:56 +01:00
parent c65d99e35d
commit d031b9414d
1 changed files with 2 additions and 2 deletions

View File

@ -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