thunderbird / thunderbird/thunderbird-android

Server search results are lost after an action

Open
#5,784 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: help wanted
Dominant language
Kotlin
Stars
14k
Forks
2.8k
Avg merge
3d 3h
Merged PRs (30d)
57

Description

Describe the bug
When using the "search messages on server" option, results that are retrieved from the server disappear from the search results list after an action (e.g. message archived) is taken.

To Reproduce

  1. Use an IMAP account that supports server-side search and have the inbox size set to something other than "all".
  2. Perform a text search that will get results from the messages that are not currently downloaded by K-9.
  3. Press the "search messages on server" button and see extra results appear.
  4. Delete or archive one of the new messages.
  5. Observe the remaining server-side messages disappear from the search results list.

Expected behavior
The remaining server-side messages should stay in the search results until the search is closed.

Environment (please complete the following information):

  • K-9 Mail version: 5.904
  • Android version: 11 (LineageOS 18.1)
  • Device: OnePlus 3T
  • Account type: IMAP (Dovecot server)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the listed IMAP setup and the numbered search/action steps, then trace the server-side search results through the action that deletes or archives a message. Confirm that locally downloaded and server-side results are handled separately. Done means the remaining server-side messages stay visible until the search is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.