01d0b82ee8
Update all dependencies to latest versions
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:32:17 +02:00
abf4c787ab
Manually remove images instead of parsing
...
Instead of using all kinds of difficult libraries, just replace the
string "src" with "data-source". This covers most cases of removing
images.
This also removes the previously inlined kuchiki and sanitize-html-rs
libraries.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:19:24 +02:00
9d41fcd463
Change path to store messages in
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:19:24 +02:00
96a9c27fc0
Use Message struct in write_to_test_path()
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:18:53 +02:00
02be91a75d
Add struct Message, owning the data
...
This is more understandable than using (String, Vec<u8>) everywhere.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-07-20 23:06:46 +02:00
13c8665daa
Update mail_parser crate to v0.5.0
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-07-20 23:02:23 +02:00
8a0d6ee9c7
Remove unused imports
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 22:13:41 +02:00
52ec0925f2
Convert IMAP functions into ImapReader
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 22:11:47 +02:00
8f29b35ae7
Move message readers into its own module
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 21:51:04 +02:00
dffd67b765
Add EmailReader trait
...
This trait is now also implemented for reading the test messages.
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 21:41:48 +02:00
f7815e3406
Small code improvements
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 20:39:35 +02:00
8f6f9c6e79
Add email sanitization
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-11 00:29:11 +02:00
5962a4755b
Upgrade package version where possible
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 14:50:49 +02:00
ecb435bbc4
Add fork of kuchiki
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 14:37:41 +02:00
4e3f7b46da
Add private fork of sanitize-html-rs
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:55:11 +02:00
36da496aa1
Move to workspaces setup
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:54:17 +02:00
910d58dd02
Add writing of HTML file
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:46:07 +02:00
431c26a358
Initial commit
...
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-07 22:27:28 +02:00