Open Bug 1848114 Opened 3 years ago Updated 10 months ago

Get and Set Replied and Forwarded State of a Message

Categories

(Thunderbird :: Add-Ons: Extensions API, enhancement)

enhancement

Tracking

(Not tracked)

UNCONFIRMED

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".

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?

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.

Sorry, my mistake. I forgot MessageHeader did both things.

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)

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.

See Also: → 128072

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.

Duplicate of this bug: 1990929
You need to log in before you can comment on or make changes to this bug.