With quote 1.0.28 the TokenTree enum is declared as a private enum
thus causing this error at build time:
error[E0603]: enum `TokenTree` is private
--> config_macros.rs:114:54
|
114 | ... if let quote::__private::TokenTree::Group(g) =
| ^^^^^^^^^ private enum
Use enum definition from proc_macro2 instead.
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Show custom set headers on pager, if existent.
Quoting meli.conf(5):
> show_extra_headers [String] (optional) Extra headers to
> display, if present, in the
> default header preamble of
> the pager. This setting is
> useful especially when used
> per-folder or per-account.
> For example, if you use
> ‘rss2email’ (See r2e(1)) the
> e-mail you will receive will
> have the ‘X-RSS-Feed’ header
> by default. You can show
> them only in the folder
> where you keep your feed
> items:
>
> [accounts."personal".mailboxes]
> INBOX = {}
> "INBOX/Sent" = { sort_order=0 }
> "INBOX/Feeds" = { pager.show_extra_headers = ["X-RSS-Feed"] }
> (empty)
If html_filter fails, meli unwraps it. Also, if it can't find an xdg default app it also fails.
So use xdg-open and open as failsaifes.
But that requires `open` to know it's an html file, so implemented setting temp file extensions as well.
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" }]
```
compose-hooks run before submitting an e-mail.
They perform draft validation and/or transformations.
If a hook encounters an error or warning, it will show up as a notification.
The currently available hooks are:
- past-date-warn
Warn if Date header value is far in the past or future.
- important-header-warn
Warn if important headers (From, Date, To, Cc, Bcc) are missing or invalid.
- missing-attachment-warn
Warn if Subject, draft body mention attachments but they are missing.
- empty-draft-warn
Warn if draft has no subject and no body.
They can be disabled with [composing.disabled_compose_hooks] setting.
Fastmail now uses an API token in a http header for authentication.
This can be used either as a server_password or provided by a
server_password_command like oauth2.