forked from meli/meli
1
Fork 0
meli/src
Manos Pitsidianakis c9d26bb415
mail/compose: add configurable custom hooks with shell commands
Quoting the docs at meli.conf(5):

```text
 custom_compose_hooks [{ name = String, command = String }]

 (optional) Custom compose-hooks that run shell scripts.
 compose-hooks run before submitting an e-mail.
 They perform draft validation and/or transformations.
 If a custom hook exits with an error status or prints output to
 stdout and stderr, it will show up in the UI as a notification.

 Example:

 [composing]
 editor_cmd = '~/.local/bin/vim +/^$'
 embed = true
 custom_compose_hooks = [ { name ="spellcheck", command="aspell --mode email --dont-suggest --ignore-case list" }]
 ```
2023-05-19 10:34:32 +03:00
..
command Clippy fixes 2023-04-30 20:47:53 +03:00
components mail/compose: add configurable custom hooks with shell commands 2023-05-19 10:34:32 +03:00
conf mail/compose: add configurable custom hooks with shell commands 2023-05-19 10:34:32 +03:00
plugins Rename MeliError struct to Error 2022-12-08 22:20:05 +02:00
terminal Add compose (pre-submission) hooks for validation/linting 2023-05-16 17:31:56 +03:00
types Clippy fixes 2023-04-30 20:47:53 +03:00
args.rs docs: add edit-config in manpages 2023-05-01 08:43:36 +03:00
command.rs Clippy fixes 2023-04-30 20:47:53 +03:00
components.rs Clippy fixes 2023-04-30 20:47:53 +03:00
conf.rs mail/compose: add configurable custom hooks with shell commands 2023-05-19 10:34:32 +03:00
jobs.rs Clippy fixes 2023-04-30 20:47:53 +03:00
lib.rs Clippy fixes 2023-04-30 20:47:53 +03:00
mailcap.rs Replace old logging module with the `log` create 2023-05-01 16:22:35 +03:00
main.rs Clippy fixes 2023-04-30 20:47:53 +03:00
managesieve.rs Clippy fixes 2023-04-30 20:47:53 +03:00
plugins.rs Rename MeliError struct to Error 2022-12-08 22:20:05 +02:00
sqlite3.rs Replace old logging module with the `log` create 2023-05-01 16:22:35 +03:00
state.rs Add compose (pre-submission) hooks for validation/linting 2023-05-16 17:31:56 +03:00
terminal.rs Clippy fixes 2023-04-30 20:47:53 +03:00
types.rs Clippy fixes 2023-04-30 20:47:53 +03:00