Loading mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapFolder.kt +0 −18 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ import com.fsck.k9.mail.Body import com.fsck.k9.mail.BodyFactory import com.fsck.k9.mail.FetchProfile import com.fsck.k9.mail.Flag import com.fsck.k9.mail.FolderType import com.fsck.k9.mail.K9MailLib import com.fsck.k9.mail.Message import com.fsck.k9.mail.MessageRetrievalListener Loading @@ -23,7 +22,6 @@ import java.util.Date import java.util.HashMap import java.util.LinkedHashSet import java.util.Locale import java.util.concurrent.ConcurrentHashMap import kotlin.math.max import kotlin.math.min import timber.log.Timber Loading @@ -38,7 +36,6 @@ class ImapFolder internal constructor( @Volatile private var connection: ImapConnection? = null private var msgSeqUidMap: MutableMap<Long, String> = ConcurrentHashMap() @Volatile private var exists = false Loading @@ -50,8 +47,6 @@ class ImapFolder internal constructor( var messageCount = -1 private set var type = FolderType.REGULAR var mode = 0 private set Loading Loading @@ -122,8 +117,6 @@ class ImapFolder internal constructor( } try { msgSeqUidMap.clear() val openCommand = if (mode == OPEN_MODE_RW) "SELECT" else "EXAMINE" val encodedFolderName = folderNameCodec.encode(prefixedName) val escapedFolderName = ImapUtility.encodeString(encodedFolderName) Loading Loading @@ -596,17 +589,6 @@ class ImapFolder internal constructor( if (response.tag == null && ImapResponseParser.equalsIgnoreCase(response[1], "FETCH")) { val fetchList = response.getKeyedValue("FETCH") as ImapList val uid = fetchList.getKeyedString("UID") val msgSeq = response.getLong(0) if (uid != null) { try { msgSeqUidMap[msgSeq] = uid if (K9MailLib.isDebug()) { Timber.v("Stored uid '%s' for msgSeq %d into map", uid, msgSeq) } } catch (e: Exception) { Timber.e("Unable to store uid '%s' for msgSeq %d", uid, msgSeq) } } val message = messageMap[uid] if (message == null) { Loading Loading
mail/protocols/imap/src/main/java/com/fsck/k9/mail/store/imap/ImapFolder.kt +0 −18 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ import com.fsck.k9.mail.Body import com.fsck.k9.mail.BodyFactory import com.fsck.k9.mail.FetchProfile import com.fsck.k9.mail.Flag import com.fsck.k9.mail.FolderType import com.fsck.k9.mail.K9MailLib import com.fsck.k9.mail.Message import com.fsck.k9.mail.MessageRetrievalListener Loading @@ -23,7 +22,6 @@ import java.util.Date import java.util.HashMap import java.util.LinkedHashSet import java.util.Locale import java.util.concurrent.ConcurrentHashMap import kotlin.math.max import kotlin.math.min import timber.log.Timber Loading @@ -38,7 +36,6 @@ class ImapFolder internal constructor( @Volatile private var connection: ImapConnection? = null private var msgSeqUidMap: MutableMap<Long, String> = ConcurrentHashMap() @Volatile private var exists = false Loading @@ -50,8 +47,6 @@ class ImapFolder internal constructor( var messageCount = -1 private set var type = FolderType.REGULAR var mode = 0 private set Loading Loading @@ -122,8 +117,6 @@ class ImapFolder internal constructor( } try { msgSeqUidMap.clear() val openCommand = if (mode == OPEN_MODE_RW) "SELECT" else "EXAMINE" val encodedFolderName = folderNameCodec.encode(prefixedName) val escapedFolderName = ImapUtility.encodeString(encodedFolderName) Loading Loading @@ -596,17 +589,6 @@ class ImapFolder internal constructor( if (response.tag == null && ImapResponseParser.equalsIgnoreCase(response[1], "FETCH")) { val fetchList = response.getKeyedValue("FETCH") as ImapList val uid = fetchList.getKeyedString("UID") val msgSeq = response.getLong(0) if (uid != null) { try { msgSeqUidMap[msgSeq] = uid if (K9MailLib.isDebug()) { Timber.v("Stored uid '%s' for msgSeq %d into map", uid, msgSeq) } } catch (e: Exception) { Timber.e("Unable to store uid '%s' for msgSeq %d", uid, msgSeq) } } val message = messageMap[uid] if (message == null) { Loading