Closed Bug 1749198 Opened 3 years ago Closed 3 years ago

[Compose API] Get and Set Custom Headers via ComposeDetails

Categories

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

enhancement

Tracking

(thunderbird_esr91 wontfix)

RESOLVED FIXED
100 Branch
Tracking Status
thunderbird_esr91 --- wontfix

People

(Reporter: myaddons, Assigned: TbSync)

References

Details

Attachments

(1 file)

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: nobody → john
Attachment #9269303 - Attachment description: WIP: Bug 1749198 - Add support for custom headers to ComposeDetails. r=mkmelin → Bug 1749198 - Add support for custom headers to ComposeDetails. r=mkmelin
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 100 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/5790f457bfa6
Add support for custom headers to ComposeDetails. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: