Open Bug 2065695 Opened 11 days ago Updated 1 hour ago

nsImapService doesn't perform msgKey<->UID mapping

Categories

(MailNews Core :: Networking: IMAP, defect)

defect

Tracking

(Not tracked)

ASSIGNED
157 Branch

People

(Reporter: benc, Assigned: benc)

References

(Blocks 1 open bug)

Details

(Keywords: leave-open)

Attachments

(3 files)

The message urls used by nsIMsgMessageService contain message keys.
But nsImapService (which implements nsIMsgMessageService) assumes that those message keys can be used directly as UIDs.
This works fine for now because message keys are UIDs for IMAP, but that'll change with Bug 1806770.

That means that things like nsIMsgMessageService.streamMessage() will stop working for IMAP.

To prepare for that, nsImapService should be changed in advance to use the msgKey<->UID mapping functions declared in nsImapUtils.h.
At the moment those functions just do a 1:1 mapping (message keys passed in are returned verbatim as UIDs and vice versa), but Bug 1806770 will change them to perform actual database lookups.

Keywords: leave-open
Target Milestone: --- → 157 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/84f3f219ac3c
Fix msgKey<->UID mapping in nsImapService::StreamMessage(). r=mkmelin

Attachment #9635191 - Attachment description: WIP: Bug 2065695 - Add assorted missing UID<->msgKey mapping in nsImapService. → Bug 2065695 - Implement assorted missing UID<->msgKey mapping in nsImapService. r=#thunderbird-back-end-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: