mail/compose: add configurable header preample suffix and prefix for editing #177

Manually merged
Manos Pitsidianakis merged 1 commits from wrap-header-preample-in-compose into master 2023-05-16 11:02:25 +03:00

This commit adds a new configuration value for the composing section of
settings. Quoting the documentation:

wrap_header_preamble: Option<(String, String)>
optional

Wrap header preample when editing a draft in an editor. This allows you
to write non-plain text email without the preamble creating syntax
errors. They are stripped when you return from the editor. The values
should be a two element array of strings, a prefix and suffix. This can
be useful when for example you're writing Markdown; you can set the
value to ["<!--",\ "-->"] which wraps the headers in an HTML comment.

Closes #143

This commit adds a new configuration value for the composing section of settings. Quoting the documentation: wrap_header_preamble: Option<(String, String)> optional Wrap header preample when editing a draft in an editor. This allows you to write non-plain text email without the preamble creating syntax errors. They are stripped when you return from the editor. The values should be a two element array of strings, a prefix and suffix. This can be useful when for example you're writing Markdown; you can set the value to `["<!--",\ "-->"]` which wraps the headers in an HTML comment. Closes #143
Manos Pitsidianakis added the
enhancement
label 2022-09-02 09:55:31 +03:00
Manos Pitsidianakis self-assigned this 2022-09-02 09:55:31 +03:00
Manos Pitsidianakis force-pushed wrap-header-preample-in-compose from 16e1653148 to cbe593cf31 2022-09-02 16:11:55 +03:00 Compare
Manos Pitsidianakis manually merged commit cbe593cf31 into master 2022-09-02 16:11:55 +03:00
Manos Pitsidianakis deleted branch wrap-header-preample-in-compose 2022-09-02 16:12:03 +03:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#177
There is no content yet.