Commit Graph

60 Commits

Author SHA1 Message Date
a3317592e1 Update all cargo dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2023-06-10 10:04:22 +02:00
9f815f3f9c Release version 0.2.3
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 18:56:26 +01:00
6cb35aae42 Update dependencies with contributions
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 18:55:19 +01:00
7c5e971571 Merge pull request 'Add update subcommand to update itself to the latest version' (#16) from 15-update into master
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-28 23:16:41 +00:00
0598026756 Add update subcommand
All checks were successful
continuous-integration/drone/push Build is passing
This allows updating the binary to the latest verison.

Closes: #15

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 00:08:49 +01:00
4069d8ac31 Update changelog
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
7407654e60 Fix CS and some other small things
Useful tool, that clippy...

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
e7fd41ff95 Truncate the feed file before writing
Otherwise, the feed may be overwritten, but if it is shorter, it may
contain some leftover data from a previous run. In that case, the file
will be invalid XML, thereby failing to be parsed.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
c2d09621aa Add style sheet to the feed
Based on the code proposed in PR 70 of the atom-syndication crate.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 22:59:45 +01:00
9129f7e11b Put real feed url into feed
Instead of hardcoding the feed file name to be feed.atom, it has been
configurable for a while. This is now also reflected in the feed itself.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 22:50:50 +01:00
71371cb3e1 Go back to docker-in-docker
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 21:07:41 +01:00
f61e635721 Add link to releases page
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 12:27:27 +01:00
d3e4c9e790 Add usage instruction to README
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 12:21:21 +01:00
3d7e5fc2cf Update to v0.2.2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 19:18:43 +01:00
78049cf7b6 Remove unnecessary docker-in-docker
All checks were successful
continuous-integration/drone/push Build is passing
We're now launching new build servers, so security is less of a concern.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 19:01:43 +01:00
3abec884c2 Really remove targets I don't care about
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 18:43:56 +01:00
ea30a49901 Build with rust v1.66 and cross v0.2.4
Also added some sanity checks. The new docker image now also contains
all required targets and the rust-src component already, which makes it
a bit faster to get started.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 18:42:38 +01:00
31fda8bae2 Update changelog for v0.2.1
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build encountered an error
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 17:01:09 +01:00
b19688a79c Remove builds I don't personally care about
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 16:05:39 +01:00
546c063ce9 Update to mail_parser v0.8.0
Some checks reported errors
continuous-integration/drone Build was killed
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 15:44:14 +01:00
751b4d2551 Release version 0.2.0.
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build was killed
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-30 09:16:11 +01:00
60362ff7c2 Add style sheet to feed
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build encountered an error
This makes it easier in a browser to use and understand the feed.

The style sheet is shamelessly copied from
https://andrewstiefel.com/style-atom-xsl/

Closes #4

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:55:54 +01:00
4599ce47fb Replace hard-coded feed name with configured name
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:22:43 +01:00
6d3527d3e4 Add some cargo instructions
For example, to derive the documetation from the README.md file.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:09:06 +01:00
49a9670c4a Rename feed by default to feed.xml
This helps with processing in browsers.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:08:12 +01:00
0f65550169 Write index.html file to output
This gives a simple landing page with a rel=alternate link to the feed.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 23:07:11 +01:00
7658748fa7 Build with rust 1.65
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 22:33:43 +01:00
a4d9d16482 Update rust dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 22:33:31 +01:00
427831fc93 Update dependencies
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-10 20:06:34 +01:00
9a89febcb2 Remove workspace
Since only the bin crate was left, there is no reason to keep the
workspace setup.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-10 20:04:35 +01:00
161c021e08 Tagging release v0.1.0
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:54:36 +02:00
c3051e9cd2 Add cross-platform builds with jsonnet
Some checks reported errors
continuous-integration/drone/push Build was killed
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:17:52 +02:00
078ac2e82e Update dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:17:05 +02:00
ea57f625e4 Add systemd deployment example
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-06 23:36:37 +02:00
575495bf2c Update title
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-09 22:01:52 +02:00
3c25726c32 Add landing page
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-09 22:01:15 +02:00
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
24fb0c1ba6 Ignore more directories
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-06 23:00:57 +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
144df61af2 Enable drone integration (#1)
All checks were successful
continuous-integration/drone/push Build is passing
This will enable integration with the Drone build server.

Reviewed-on: jjkiers/newsletter-to-web#1
2022-08-04 22:15:05 +00:00
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