Commit Graph

59 Commits

Author SHA1 Message Date
Jacob Kiers 9f815f3f9c Release version 0.2.3
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 18:56:26 +01:00
Jacob Kiers 6cb35aae42 Update dependencies with contributions
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-29 18:55:19 +01:00
Jacob Kiers 7c5e971571 Merge pull request 'Add `update` subcommand to update itself to the latest version' (#16) from 15-update into master
continuous-integration/drone/push Build is passing Details
2022-12-28 23:16:41 +00:00
Jacob Kiers 0598026756 Add update subcommand
continuous-integration/drone/push Build is passing Details
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
Jacob Kiers 4069d8ac31 Update changelog
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 23:00:45 +01:00
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 71371cb3e1 Go back to docker-in-docker
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 21:07:41 +01:00
Jacob Kiers f61e635721 Add link to releases page
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 12:27:27 +01:00
Jacob Kiers d3e4c9e790 Add usage instruction to README
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-27 12:21:21 +01:00
Jacob Kiers 3d7e5fc2cf Update to v0.2.2
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 19:18:43 +01:00
Jacob Kiers 78049cf7b6 Remove unnecessary docker-in-docker
continuous-integration/drone/push Build is passing Details
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
Jacob Kiers 3abec884c2 Really remove targets I don't care about
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-16 18:43:56 +01:00
Jacob Kiers 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
Jacob Kiers 31fda8bae2 Update changelog for v0.2.1
continuous-integration/drone/push Build was killed Details
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone Build encountered an error Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 17:01:09 +01:00
Jacob Kiers b19688a79c Remove builds I don't personally care about
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 16:05:39 +01:00
Jacob Kiers 546c063ce9 Update to mail_parser v0.8.0
continuous-integration/drone Build was killed Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-12-13 15:44:14 +01:00
Jacob Kiers 751b4d2551 Release version 0.2.0.
continuous-integration/drone/push Build was killed Details
continuous-integration/drone/tag Build was killed Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-30 09:16:11 +01:00
Jacob Kiers 60362ff7c2 Add style sheet to feed
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build encountered an error Details
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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 7658748fa7 Build with rust 1.65
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 22:33:43 +01:00
Jacob Kiers a4d9d16482 Update rust dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-29 22:33:31 +01:00
Jacob Kiers 427831fc93 Update dependencies
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-11-10 20:06:34 +01:00
Jacob Kiers 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
Jacob Kiers 161c021e08 Tagging release v0.1.0
continuous-integration/drone/push Build was killed Details
continuous-integration/drone/tag Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:54:36 +02:00
Jacob Kiers c3051e9cd2 Add cross-platform builds with jsonnet
continuous-integration/drone/push Build was killed Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:17:52 +02:00
Jacob Kiers 078ac2e82e Update dependencies
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-07 23:17:05 +02:00
Jacob Kiers ea57f625e4 Add systemd deployment example
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-09-06 23:36:37 +02:00
Jacob Kiers 575495bf2c Update title
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-09 22:01:52 +02:00
Jacob Kiers 3c25726c32 Add landing page
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-09 22:01:15 +02:00
Jacob Kiers 802b2a81b8 Add missing options to build-feed
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-07 23:17:41 +02:00
Jacob Kiers f529e0ceb6 Make it a real CLI app
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-07 00:17:24 +02:00
Jacob Kiers 24fb0c1ba6 Ignore more directories
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-06 23:00:57 +02:00
Jacob Kiers f552e86945 Small cleanup
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-05 12:44:03 +02:00
Jacob Kiers 118a30df67 Generate an Atom feed from the newsletters
continuous-integration/drone/pr Build encountered an error Details
continuous-integration/drone/push Build is passing Details
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-05 02:27:10 +02:00
Jacob Kiers 144df61af2 Enable drone integration (#1)
continuous-integration/drone/push Build is passing Details
This will enable integration with the Drone build server.

Reviewed-on: jjkiers/newsletter-to-web#1
2022-08-04 22:15:05 +00:00
Jacob Kiers 01d0b82ee8 Update all dependencies to latest versions
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:32:17 +02:00
Jacob Kiers 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
Jacob Kiers 9d41fcd463 Change path to store messages in
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-08-02 23:19:24 +02:00
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 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
Jacob Kiers 8a0d6ee9c7 Remove unused imports
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 22:13:41 +02:00
Jacob Kiers 52ec0925f2 Convert IMAP functions into ImapReader
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 22:11:47 +02:00
Jacob Kiers 8f29b35ae7 Move message readers into its own module
Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
2022-06-12 21:51:04 +02:00