thunderbird/thunderbird-android

[ML 0.5/MVI.02.3] Implement LocalMessageUidPrefixProvider

已關閉

#10,511 建立於 2026年2月10日

 (7 則留言) (0 個反應) (1 位負責人)Kotlin (2,734 個分叉)batch import
good first issuetype: enhancement

倉庫指標

星標
 (13,479 顆星)
PR 合併指標
 (平均合併 7天 4小時) (30 天內合併 81 個 PR)

描述

Description

Implement the LocalMessageUidPrefixProvider logic to retrieve the system-wide prefix used for messages that have not yet been synced with the server.

Goal

Decouple the deletion logic from legacy global constants (like K9.LOCAL_UID_PREFIX), allowing for cleaner testing and dependency injection.

Acceptance Criteria

  • Correctly identifies messages generated locally that do not yet have a server-assigned UID.
  • Replace direct calls from K9.LOCAL_UID_PREFIX to the newly created LocalMessageUidPrefixProvider.get()
  • Testing: Unit tests verifying prefix detection across various message UID formats.

貢獻者指南