Frederick888 / external-editor-revived

External Editor Revived is a Thunderbird MailExtension which allows editing emails in programs such as Vim, Neovim, Emacs, etc.
GNU General Public License v3.0
110 stars 6 forks source link

feat: Support X-ExtEditorR meta header #113

Closed Frederick888 closed 10 months ago

Frederick888 commented 1 year ago

Description

aa7f235 feat: Support X-ExtEditorR meta header

The extension setting only affects the default presentation. Meta header parsing is always enabled.

To use the X-ExtEditorR meta header as a literal custom header, escape it by prepending an 'X-ExtEditorR-'.

That is, to send an 'X-ExtEditorR: foo' custom header, one can use either 'X-ExtEditorR: X-ExtEditorR: foo' or 'X-ExtEditorR-X-ExtEditorR: foo'; to send an 'X-ExtEditorR-Hello: foo', one can use either 'X-ExtEditorR: X-ExtEditorR-Hello: foo' or 'X-ExtEditorR-X-ExtEditorR-Hello: foo'.

Checklist

Is this a breaking change?

No.

Previously X-ExtEditorR* could be custom headers directly, but custom header has not been released.

Test results

Closes #108