Stop using detached nsIMsgDBHdr objects
Categories
(MailNews Core :: Database, task)
Tracking
(Not tracked)
People
(Reporter: benc, Assigned: benc)
References
(Blocks 2 open bugs)
Details
(Keywords: leave-open)
Attachments
(1 file)
Mork supports the concept of detached rows, so you can create a row, populate it with data and then add it to the database.
This is used when adding new message entries to the DB: a detached nsIMsgDBHdr
object is created, populated with data, then attached to the message table in the database.
This is rather a pain for a msgDB implemented on top of sqlite (i.e. a globaldb).
So it'd be much better to just have a function that lets us pass in the raw data we want for the message, and return a new, already-populated nsIMsgDBHdr
object. This'd still work fine for the existing database, and would make the globaldb much easier.
Assignee | ||
Updated•9 days ago
|
Assignee | ||
Comment 1•9 days ago
|
||
This patch adds a raw data struct to let the caller create a message without
using a detached nsIMsgDBHdr.
Assignee | ||
Updated•6 days ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6b9365a770df
Add nsIMsgDatabase.addMsgHdr(). r=mkmelin
Description
•