[Compose API] Get and Set Custom Headers via ComposeDetails
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(thunderbird_esr91 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr91 | --- | wontfix |
People
(Reporter: myaddons, Assigned: TbSync)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
My own add-on Mail Merge has supported custom headers for years. Custom headers can be defined by the user via the preference "mail.compose.other.header" and then used in the compose window.
However, at the moment it is not possible to access custom headers via ComposeDetails. There should be a new property "headers", which contains an array of the custom headers of the message.
This new property "headers" should be supported in getComposeDetails(), setComposeDetails(), beginNew(), beginReply(), beginForward() the new send function discussed in Bug 1545930.
This would also help the add-on Send Later as mentioned in Bug 1631580:
Set headers via setComposeDetails
The ComposeDetails should support a headers object to set headers. I guess we have to work with blacklists, as some headers probably should not be manipulated. There is a similar request here but it needs shaping.
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5790f457bfa6
Add support for custom headers to ComposeDetails. r=mkmelin
Description
•