i need some help if possible. I developing an addon which adds an extra StringReference header to a letter during send.
After it is in the "Sent" folder I would like to collect threadId (this is ok), and remove the extra StringReference from the header. I have found the following http://mdn.beonex.com/en/XPCOM_Interface_Reference/nsIMsgDBHdr.html:
In clear, if you want to do a persistent change to a message header, such as marking it as read, or replied to, or whatever, you MUST do it through its corresponding nsIMsgFolder (msgHdr.folder) or nsIMsgDatabase (msgHdr.folder.msgDatabase).
But I cannot make a working code, because I cannot get nsIMsgDatabase, but even if I could have this object for the actual msgHdrDb I should call Commit(type) with some commit type I cannot figure out. Could anyone help me with some example how to make permanent changes on a message in the msgHdrDb?
Thank you for you help in advance!