Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 416859a7 authored by nwuensche's avatar nwuensche
Browse files

Replace deprecated MessagingException

parent 8e9a3b2e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3,7 +3,7 @@ package com.fsck.k9.backend.api
import com.fsck.k9.mail.BodyFactory
import com.fsck.k9.mail.BodyFactory
import com.fsck.k9.mail.Flag
import com.fsck.k9.mail.Flag
import com.fsck.k9.mail.Message
import com.fsck.k9.mail.Message
import com.fsck.k9.mail.MessagingException
import net.thunderbird.core.common.exception.MessagingException
import com.fsck.k9.mail.Part
import com.fsck.k9.mail.Part


interface Backend {
interface Backend {
+1 −1
Original line number Original line Diff line number Diff line
package com.fsck.k9.backend.api
package com.fsck.k9.backend.api


import com.fsck.k9.mail.FolderType
import com.fsck.k9.mail.FolderType
import com.fsck.k9.mail.MessagingException
import net.thunderbird.core.common.exception.MessagingException
import java.io.Closeable
import java.io.Closeable


interface BackendStorage {
interface BackendStorage {
+1 −1
Original line number Original line Diff line number Diff line
package com.fsck.k9.backend.imap
package com.fsck.k9.backend.imap


import com.fsck.k9.mail.MessagingException
import com.fsck.k9.mail.store.imap.ImapStore
import com.fsck.k9.mail.store.imap.ImapStore
import com.fsck.k9.mail.store.imap.OpenMode
import com.fsck.k9.mail.store.imap.OpenMode
import net.thunderbird.core.common.exception.MessagingException


internal class CommandDelete(private val imapStore: ImapStore) {
internal class CommandDelete(private val imapStore: ImapStore) {


+1 −1
Original line number Original line Diff line number Diff line
package com.fsck.k9.backend.imap
package com.fsck.k9.backend.imap


import com.fsck.k9.mail.MessagingException
import com.fsck.k9.mail.store.imap.ImapStore
import com.fsck.k9.mail.store.imap.ImapStore
import com.fsck.k9.mail.store.imap.OpenMode
import com.fsck.k9.mail.store.imap.OpenMode
import net.thunderbird.core.common.exception.MessagingException


internal class CommandDeleteAll(private val imapStore: ImapStore) {
internal class CommandDeleteAll(private val imapStore: ImapStore) {


+1 −1
Original line number Original line Diff line number Diff line
@@ -3,7 +3,6 @@ package com.fsck.k9.backend.imap
import com.fsck.k9.backend.api.BackendPusher
import com.fsck.k9.backend.api.BackendPusher
import com.fsck.k9.backend.api.BackendPusherCallback
import com.fsck.k9.backend.api.BackendPusherCallback
import com.fsck.k9.mail.AuthenticationFailedException
import com.fsck.k9.mail.AuthenticationFailedException
import com.fsck.k9.mail.MessagingException
import com.fsck.k9.mail.power.PowerManager
import com.fsck.k9.mail.power.PowerManager
import com.fsck.k9.mail.store.imap.IdleRefreshManager
import com.fsck.k9.mail.store.imap.IdleRefreshManager
import com.fsck.k9.mail.store.imap.IdleRefreshTimeoutProvider
import com.fsck.k9.mail.store.imap.IdleRefreshTimeoutProvider
@@ -15,6 +14,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancel
import kotlinx.coroutines.cancel
import kotlinx.coroutines.launch
import kotlinx.coroutines.launch
import net.thunderbird.core.common.exception.MessagingException
import net.thunderbird.core.logging.legacy.Log
import net.thunderbird.core.logging.legacy.Log


private const val IO_ERROR_TIMEOUT = 5 * 60 * 1000L
private const val IO_ERROR_TIMEOUT = 5 * 60 * 1000L
Loading