Only some emails being downloaded on specific accounts

I have a few different email accounts mounted in my K-9 app and 2 of them are only downloading a few older emails and ignoring the rest of the inbox. I have accounts that are working fine and all are from the same email provider (Titan).

What I am seeing: refreshing the email inbox appears to do nothing and simply shows me 7 older emails with the option at the end to load up to 100 more. Doing so does nothing.

What I have tried: I have tried completely re-installing the application and reconfiguring the account. No errors are shown.

App version: 6.804 on Android

Debug Log from a refresh attempt: (no obvious errors to my eye)

--------- beginning of main

09-05 19:03:10.352 31619 31619 I ImeTracker: com.fsck.k9:9ac995b3: onRequestHide at ORIGIN_CLIENT reason HIDE_SOFT_INPUT fromUser false
09-05 19:03:11.681 31619 31619 D VRI[MessageList]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:13.227 31619 31619 D VRI[SettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:13.237 31619 31658 D HWUI : endAllActiveAnimators on 0x600c3162efddc00 (FrameLayout) with handle 0x100c1e7b03d1900
09-05 19:03:14.460 31619 31619 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
09-05 19:03:14.460 31619 31619 W WindowOnBackDispatcher: Set ‘android:enableOnBackInvokedCallback=“true”’ in the application manifest.
09-05 19:03:16.389 31619 32392 I K9StorageEditor: Committing preference changes
09-05 19:03:16.417 31619 32392 I K9StorageEditor: Preferences commit took 31 ms
09-05 19:03:19.683 31619 31619 D VRI[GeneralSettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:19.690 31619 31658 D HWUI : endAllActiveAnimators on 0xf00c3162f03dc00 (RippleDrawable) with handle 0xc00c1e7b03dd450
09-05 19:03:19.704 31619 31619 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@7f1b096
09-05 19:03:21.880 31619 31656 I MessagingController: Running command ‘clearNotifications’, seq = 81 (foreground priority)
09-05 19:03:21.882 31619 31656 V NotificationController: Removing some notifications for account fe0b6d15-45e2-4bda-89db-dce1023eed7c
09-05 19:03:21.882 31619 31656 I MessagingController: Command ‘clearNotifications’ completed
09-05 19:03:22.461 31619 31619 D VRI[SettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:22.476 31619 31658 D HWUI : endAllActiveAnimators on 0x300c3162efe1800 (RippleDrawable) with handle 0x800c1e7b0401210
09-05 19:03:22.484 31619 31619 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@255bd86
09-05 19:03:23.441 31619 31656 I MessagingController: Running command ‘synchronizeMailbox’, seq = 82 (background priority)
09-05 19:03:23.496 31619 31656 D MessagingController: Last folder list refresh @ Thu Sep 05 18:57:07 EDT 2024. Not refreshing now.
09-05 19:03:23.499 31619 31656 I ImapSync: Synchronizing folder Personal:INBOX
09-05 19:03:23.500 31619 31656 V ImapSync: SYNC: About to get local folder INBOX
09-05 19:03:23.502 31619 31656 V ImapSync: SYNC: About to get remote folder INBOX
09-05 19:03:23.504 31619 31656 V ImapSync: SYNC: About to open remote folder INBOX
09-05 19:03:23.508 31619 31656 V RealImapConnection: conn58855797>>> 15 NOOP
09-05 19:03:23.546 31619 31656 V ImapResponseParser: conn58855797<<<#15# [OK, NOOP]
09-05 19:03:23.548 31619 31656 V RealImapConnection: conn58855797>>> 16 EXAMINE “INBOX”
09-05 19:03:23.594 31619 31656 V ImapResponseParser: conn58855797<<<#null# [FLAGS, [\Answered, \Flagged, \Deleted, \Seen, \Draft, $forwarded, forwarded, $notjunk, notjunk, junk, nonjunk, $junk, $mdnsent, nonjunk, $label1, $forwarded]]
09-05 19:03:23.594 31619 31656 V ImapResponseParser: conn58855797<<<#null# [201, EXISTS]
09-05 19:03:23.594 31619 31656 V ImapResponseParser: conn58855797<<<#null# [0, RECENT]
09-05 19:03:23.595 31619 31656 V ImapResponseParser: conn58855797<<<#null# [OK, [UNSEEN, 15], First Unseen UID]
09-05 19:03:23.595 31619 31656 V ImapResponseParser: conn58855797<<<#null# [OK, [PERMANENTFLAGS, ], Read-only]
09-05 19:03:23.596 31619 31656 V ImapResponseParser: conn58855797<<<#null# [OK, [UIDNEXT, 2036], Next UID]
09-05 19:03:23.596 31619 31656 V ImapResponseParser: conn58855797<<<#null# [OK, [UIDVALIDITY, 1], Valid]
09-05 19:03:23.596 31619 31656 V ImapResponseParser: conn58855797<<<#16# [OK, [READ-ONLY], EXAMINE]
09-05 19:03:23.597 31619 31656 D RealImapFolder: Got untagged EXISTS with value 201 for fe0b6d15-45e2-4bda-89db-dce1023eed7c:INBOX/MessagingController/conn58855797
09-05 19:03:23.598 31619 31656 D RealImapFolder: Got UidNext = 2036 for fe0b6d15-45e2-4bda-89db-dce1023eed7c:INBOX/MessagingController/conn58855797
09-05 19:03:23.604 31619 31656 V ImapSync: SYNC: Remote message count for folder INBOX is 201
09-05 19:03:23.604 31619 31656 V ImapSync: SYNC: About to get messages 1 through 201 for folder INBOX
09-05 19:03:23.605 31619 31656 V RealImapConnection: conn58855797>>> 17 UID SEARCH 1:201 NOT DELETED
09-05 19:03:23.644 31619 31656 V ImapResponseParser: conn58855797<<<#null# [SEARCH, 39, 40, 41, 43, 44, 45, 46, 189]
09-05 19:03:23.645 31619 31656 V ImapResponseParser: conn58855797<<<#17# [OK, UID SEARCH]
09-05 19:03:23.646 31619 31656 V ImapSync: SYNC: Got 8 messages for folder INBOX
09-05 19:03:23.647 31619 31656 V ImapSync: Message with uid 189 is present in the local store
09-05 19:03:23.648 31619 31656 V ImapSync: Message with uid 46 is present in the local store
09-05 19:03:23.649 31619 31656 V ImapSync: Message with uid 45 is present in the local store
09-05 19:03:23.650 31619 31656 V ImapSync: Message with uid 44 is present in the local store
09-05 19:03:23.650 31619 31656 V ImapSync: Message with uid 43 is present in the local store
09-05 19:03:23.651 31619 31656 V ImapSync: Message with uid 41 is present in the local store
09-05 19:03:23.652 31619 31656 V ImapSync: Message with uid 40 is present in the local store
09-05 19:03:23.653 31619 31656 V ImapSync: Message with uid 39 is present in the local store
09-05 19:03:23.654 31619 31656 D ImapSync: SYNC: Have 0 unsynced messages
09-05 19:03:23.654 31619 31656 D ImapSync: SYNC: Have 0 large messages and 0 small messages out of 0 unsynced messages
09-05 19:03:23.654 31619 31656 D ImapSync: SYNC: Fetching 0 small messages for folder INBOX
09-05 19:03:23.655 31619 31656 D ImapSync: SYNC: Done fetching small messages for folder INBOX
09-05 19:03:23.655 31619 31656 D ImapSync: SYNC: Fetching large messages for folder INBOX
09-05 19:03:23.655 31619 31656 D ImapSync: SYNC: Done fetching large messages for folder INBOX
09-05 19:03:23.655 31619 31656 D ImapSync: SYNC: About to sync flags for 8 remote messages for folder INBOX
09-05 19:03:23.657 31619 31656 V RealImapConnection: conn58855797>>> 18 UID FETCH 189,46,45,44,43,41,40,39 (UID FLAGS)
09-05 19:03:23.691 31619 31656 V RealImapConnection: conn58855797<<<#null# [1, FETCH, [UID, 39, FLAGS, [\Seen]]]
09-05 19:03:23.692 31619 31656 V RealImapConnection: conn58855797<<<#null# [2, FETCH, [UID, 40, FLAGS, [\Seen]]]
09-05 19:03:23.692 31619 31656 V RealImapConnection: conn58855797<<<#null# [3, FETCH, [UID, 41, FLAGS, [\Seen]]]
09-05 19:03:23.693 31619 31656 V RealImapConnection: conn58855797<<<#null# [4, FETCH, [UID, 43, FLAGS, [\Seen]]]
09-05 19:03:23.693 31619 31656 V RealImapConnection: conn58855797<<<#null# [5, FETCH, [UID, 44, FLAGS, [\Seen]]]
09-05 19:03:23.693 31619 31656 V RealImapConnection: conn58855797<<<#null# [6, FETCH, [UID, 45, FLAGS, [\Seen]]]
09-05 19:03:23.693 31619 31656 V RealImapConnection: conn58855797<<<#null# [7, FETCH, [UID, 46, FLAGS, [\Seen]]]
09-05 19:03:23.694 31619 31656 V RealImapConnection: conn58855797<<<#null# [8, FETCH, [UID, 189, FLAGS, [\Seen, nonjunk]]]
09-05 19:03:23.694 31619 31656 V RealImapConnection: conn58855797<<<#18# [OK, UID FETCH]
09-05 19:03:23.712 31619 31656 D ImapSync: SYNC: Synced remote messages for folder INBOX, 0 new messages
09-05 19:03:23.724 31619 31656 D ImapSync: Done synchronizing folder Personal:INBOX @ Thu Sep 05 19:03:23 EDT 2024
09-05 19:03:23.724 31619 31656 I ImapSync: Done synchronizing folder Personal:INBOX
09-05 19:03:23.724 31619 31656 I MessagingController: Command ‘synchronizeMailbox’ completed
09-05 19:03:23.725 31619 31656 I MessagingController: Running command ‘sendPendingMessages’, seq = 83 (background priority)
09-05 19:03:23.725 31619 31656 I MessagingController: Command ‘sendPendingMessages’ completed
09-05 19:03:33.441 31619 31619 I ImeTracker: com.fsck.k9:80958bae: onRequestHide at ORIGIN_CLIENT reason HIDE_SOFT_INPUT fromUser false
09-05 19:03:34.948 31619 31619 D VRI[MessageList]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:35.984 31619 31619 D VRI[SettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:35.991 31619 31658 D HWUI : endAllActiveAnimators on 0x400c3162f0cfa00 (FrameLayout) with handle 0x100c1e7b042b900
09-05 19:03:36.295 31619 31619 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
09-05 19:03:36.295 31619 31619 W WindowOnBackDispatcher: Set ‘android:enableOnBackInvokedCallback=“true”’ in the application manifest.
09-05 19:03:36.324 31619 31619 I ImeTracker: com.fsck.k9:b115e141: onRequestHide at ORIGIN_CLIENT reason HIDE_SOFT_INPUT_CLOSE_CURRENT_SESSION fromUser false
09-05 19:03:38.987 31619 31619 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@d8d8a90
09-05 19:03:38.990 31619 31658 D HWUI : endAllActiveAnimators on 0xb00c3162f16cc00 (MenuPopupWindow$MenuDropDownListView) with handle 0x500c1e7b044b1e0
09-05 19:03:39.474 31619 31619 D VRI[GeneralSettingsActivity]: visibilityChanged oldVisibility=true newVisibility=false
09-05 19:03:44.580 31619 31619 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
09-05 19:03:44.580 31619 31619 W WindowOnBackDispatcher: Set ‘android:enableOnBackInvokedCallback=“true”’ in the application manifest.
09-05 19:03:44.614 31619 2375 V LogcatLogFileWriter: Writing logcat output to content URI: content://com.android.providers.downloads.documents/document/17
09-05 19:03:44.665 2690 2690 W libc : Access denied finding property “ro.debuggable”

Does anyone have any ideas on where to look next?

Forgot to add. This is only an issue with the root inbox folder. The rest of the folders nested under inbox and even the sent folder syncs just fine.

The IMAP server reports 201 messages in the inbox. However, a search for messages that aren’t marked as deleted only reports 8 messages. Presumably those are the ones K-9 Mail displays in the message list.

Not displaying messages marked as deleted is the intended behavior. Being able to mark a message as deleted and being able to revert that to “undelete” it is an IMAP-specific feature that is mostly a historic oddity. Most clients today delete a message right away instead of leaving it around marked as deleted.

You’ll have to find out what is causing messages to be marked as deleted. It’s also possible that the “missing” messages are not marked as deleted and instead the server’s SEARCH command is broken in a way so it doesn’t return all messages that are not marked as deleted.

From K-9 Mail’s perspective everything is working like it should.

1 Like

Interesting and thanks for the reply.

It is strange to me that all my other clients display all the emails in my inbox folder (around 180 right now). Just this one seems to ignore all but the 8 or so.

More digging I guess…