Get and Set Replied and Forwarded State of a Message
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(Not tracked)
People
(Reporter: myaddons, Unassigned)
References
Details
Add-ons should be able to get and set the "Replied" and "Forwarded" state of a message as part of the MessageHeader and MessageProperties.
Just like it is already possible for other states like "flagged", "junk", "new" and "read".
Comment 1•3 years ago
|
||
I don't think this should be part of the MessageHeader since afaik it isn't information that is stored within the email itself. MessageProperties might be reasonable.
I'm curious though, what's the use case for being able to set those states?
| Reporter | ||
Comment 2•3 years ago
|
||
If I am not mistaken, then MessageProperties is only for setting the states during update() or import(). For getting the states there is MessageHeader. Also I don't think the all current properties of MessageHeader are part of the email itself. For example: "flagged", "junk", "new" and "read". (Or "folder" and "size".)
By the way: I forgot to mention query() - it should also be possible to filter the messages for their "Replied" and "Forwarded" state.
Comment 3•3 years ago
|
||
Sorry, my mistake. I forgot MessageHeader did both things.
| Reporter | ||
Comment 4•3 years ago
|
||
The obvious use-case for me would be to implement the missing functionality requested in Bug 128072 as a pure MailExtension.
But I think getting and setting the information about the "Replied" and "Forwarded" state of a message might still be of value in other use-cases as well. For example: A few months ago the developer of the add-on Send Later, Jonathan Perry-Houts, created a list with still missing Missing MailExtension API's for his add-on, including: Ability to set messages "disposition state" (e.g. replied, forwarded)
| Reporter | ||
Comment 5•3 years ago
|
||
Maybe the posted script in Bug 128072 Comment 37 (by me) or the posted patch in Bug 128072 Comment 17 can be of any help implementing the necessary changes for add-ons to get and set the "Replied" and "Forwarded" states via pure MailExtension APIs.
Comment 6•2 years ago
|
||
Hey Alexander,
it looks like all the code is already there. Doesn't this look like a perfect possibility to contribute the patch and support me in improving the API?
- replied and forwarded need to be added to the MessageProperties and to the MessageHeader
- onUpdated needs to monitor the two flags
- update needs to set the flag
I will of course be available for help.
Description
•