[panorama] Implement GetMsgHdrFor[ServerID] for PerFolderDatabase
Categories
(MailNews Core :: Database, task)
Tracking
(Not tracked)
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.
Comment 1•29 days ago
|
||
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.
| Assignee | ||
Comment 2•13 days ago
•
|
||
(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 IMAPUIDs 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 | ||
Comment 3•13 days ago
|
||
Updated•13 days ago
|
| Assignee | ||
Updated•12 days ago
|
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/382ce390082e
Implement server-side ID lookups for Panorama. r=BenC,darktrojan
Description
•