Commit Briefs
chore: bump version to v0.6.0 (main, tags/v0.6.0)
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
ci: replace arch linux build with alpine linux
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
build: remove email on failure
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: remove cog.toml
Not a big fan of cocogitto due to some shortcomings. I'm also not a fan of conventional commits anymore so I might stop using it for rss-email. Conventional commits is nice in theory but I found it to be unnecessary and not really helpful in practice. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
feat: send oldest feed items from db first
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
refactor: make function order more predictable
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: allow multiple crate versions
Hunting down multiple crate versions is a pain. Just keep them. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: don't use ` in shell scripts
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
fix: handle errors from tasks in JoinSet
Check all task errors instead of whether joining them was successful. Previously the actual errors were ignored because it was only checked whether joining all tasks in the JoinSet was successful. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
fix: drain mpsc when running with --dry-run
The --dry-run option should fetch all feeds, store them in the database, mark them as sent, but not actually send any emails. The previous implementation only fetched all feeds and fed them to the mpsc that is shared by the accumulator and the sender, but as the sender wasn't running, nothing received the feed items from the channel, which made the accumulator block, as the channel only fits 10 items. Move the dry run logic as deep into the sender as possible so all the logic still runs and just the emails aren't sent. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: bump version to v0.5.1 (tags/v0.5.1)
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: add sqlx query metadata
Generate the sqlx query metadata for offline compile-time verification (like used in contrib/githooks/pre-commit). Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: update atom_syndication to 0.12.0
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
refactor: inline format args
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: update clap to version 4
Since Rust 1.80.0, std::sync::LazyLock is stabilized. The clippy lint clippy::non_std_lazy_statics complains if another implementation than the one in the standard library is used. Update clap to version 4 where the LazyLock implementation in the standard library is used. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: Build sqlx without TLS
Since we're using sqlite, sqlx doesn't need TLS for anything.
chore: Update [transitive] dependency ring
Builds fail on ppc64le, s390x and riscv64 due to ring failing to build. This bug was fixed in ring 0.17. Bump dependencies which transitively depend on ring so that ring>=0.17 is used during builds. Fixes builds on riscv64, s390x and ppc64le.
build: update deps rss and atom_syndication
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: bump version to v0.5.0 (tags/v0.5.0)
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
chore: add myself to the mailmap
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
fix: Set rustls log level to "Warn"
rustls is way too chatty and the messages don't serve a purpose for this program. Hard code its logging level to "Warn" so the debug logs of rss-email are actually readable and useful. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
refactor: change application architecture
The architecture of rss-email is changed to include 3 phases: - Fetching - Accumulating - Sending This makes it possible to parallelise these steps, with messages passed between them. Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
feat: add option for STARTTLS
The "starttls" configuration option and the "--smtp-starttls" command line flag are introduced to allow sending email over STARTTLS. Closes: https://todo.sr.ht/~witcher/rss-email/29 Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
fix: fallback to url if guid not available for rss
Signed-off-by: Thomas Böhler <witcher@wiredspace.de>
