Manos Pitsidianakis
946309c6f3
melib: do some small parser refactoring
...
- Use HeaderName in parsers instead of raw byte strings.
- Use byte literal constants where appropriate instead of repeating
&b"___"[..]
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-08-24 11:32:21 +03:00
Manos Pitsidianakis
66c21ab173
melib/email: move StandardHeader to its own module
...
Extract StandardHeader code to its own module to reduce name.rs
line-count size.
Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
2023-08-24 09:11:46 +03:00
Manos Pitsidianakis
5f29faa640
melib: clippy lint fixes
2023-07-03 09:38:47 +03:00
Manos Pitsidianakis
f98e36cee5
melib: Replace old-style /*! module doc comments with //!
2023-07-03 09:38:37 +03:00
Manos Pitsidianakis
e64923eeaa
melib/email/headers/names: fix debug_assert condition
...
On invalid parsings, _cnt can be equal to probe and chunk len because
the value won't be a valid header
2023-06-22 14:06:39 +03:00
Manos Pitsidianakis
6388bea9a0
melib/email/headers: fix &[u8] index in HeaderMap
2023-06-03 19:31:09 +03:00
Manos Pitsidianakis
d332e4578d
melib/headers: add proper Display impl for HeaderName
2023-05-31 18:22:17 +03:00
Manos Pitsidianakis
aebff3d3d9
melib: implement mailto RFC properly
...
This allows mailto links with `In-Reply-To` parameters to work properly.
PS Mailto links can be used with the `mailto MAILTO_URI` command
2023-05-30 16:52:29 +00:00
Manos Pitsidianakis
235fceaf21
melib: Add standard heeder constants in email::headers
...
Like `http` crate does
2023-05-30 16:52:29 +00:00