Commit Graph

16 Commits

Author SHA1 Message Date
802b2a81b8 Add missing options to build-feed
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-07 23:17:41 +02:00
f529e0ceb6 Make it a real CLI app
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-07 00:17:24 +02:00
f552e86945 Small cleanup
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-05 12:44:03 +02:00
118a30df67 Generate an Atom feed from the newsletters
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-05 02:27:10 +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
36da496aa1 Move to workspaces setup
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-10 13:54:17 +02:00