Closed Bug 2083773 Opened 1 month ago Closed 10 days ago

[panorama] Implement GetMsgHdrFor[ServerID] for PerFolderDatabase

Categories

(MailNews Core :: Database, task)

task
Points:
1

Tracking

(Not tracked)

RESOLVED FIXED
162 Branch

People

(Reporter: babolivier, Assigned: babolivier)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

This is GetMsgHdrForGMMsgID and GetMsgHdrForEwsItemID. Should be pretty straightforward: just reading the value for X-GM-MSGID and ewsId (respectively) from the message properties table.

At some point I actually think there's a good argument to be made for splitting such IDs off into their own tables (i.e. a table to assign ewsIds to messages, another to assign IMAP UIDs etc etc...) rather than having everything as extra columns on the message table. But that stuff is hidden entirely behind the database API and nobody outside ever needs to know :-) For now, extra columns are the simple way to go.

(In reply to Ben Campbell from comment #1)

At some point I actually think there's a good argument to be made for splitting such IDs off into their own tables (i.e. a table to assign ewsIds to messages, another to assign IMAP UIDs etc etc...) rather than having everything as extra columns on the message table. But that stuff is hidden entirely behind the database API and nobody outside ever needs to know :-) For now, extra columns are the simple way to go.

In this case we're just reading from the message properties table, not the messages one. Ultimately, I'd like to coalesce all of these into a single e.g. serverId property (which we can store either in a dedicated table or in the messages one) because each message should only have either an EWS ID, a Graph ID, an IMAP UID, a JMAP ID, etc. - not any two at once. Though we'll probably still need a special case for the Gmail ID, but it's probably fine to keep storing it as a message property.

Assignee: nobody → brendan
Status: NEW → ASSIGNED
Target Milestone: --- → 162 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/382ce390082e
Implement server-side ID lookups for Panorama. r=BenC,darktrojan

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: