diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 11f123c..e9a3315 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: - name: Install Nix uses: cachix/install-nix-action@v20 with: - nix_path: nixpkgs=channel:nixos-22.11 + nix_path: nixpkgs=channel:nixos-23.11 extra_nix_config: | experimental-features = nix-command flakes - uses: cachix/cachix-action@v12 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e21e64..4e10e73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Changed `envelope.watch.{event}.{hook}`: hooks can now be cumulated. For example it is possible to send a system notification and execute a shell command when receiving a new envelope: + + ```toml + envelope.watch.received.notify.summary = "New message from {sender}" + envelope.watch.received.notify.body = "{subject}" + envelope.watch.received.cmd = "echo {id} >> /tmp/new-email-counter" + ``` + +### Fixed + +- Fixed bug that was preventing watch placeholders to be replaced when using shell command hook. + ## [1.0.0-beta.2] - 2024-01-27 ### Added diff --git a/Cargo.lock b/Cargo.lock index 8e571f1..95245bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1217,8 +1217,7 @@ dependencies = [ [[package]] name = "email-lib" version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fe5898733e36f6faf030398be1481b8e80ed041372236a64bf7da0e05eb1223" +source = "git+https://git.sr.ht/~soywod/pimalaya#f9a55e764282f1986201e226aacedf13f2e0bc80" dependencies = [ "advisory-lock", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 3501f65..ed87d40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,7 +120,8 @@ clap_mangen = "0.2" console = "0.15.2" dialoguer = "0.10.2" dirs = "4.0" -email-lib = { version = "=0.21.0", default-features = false } +# email-lib = { version = "=0.21.0", default-features = false } +email-lib = { git = "https://git.sr.ht/~soywod/pimalaya", default-features = false } email_address = "0.2.4" env_logger = "0.8" erased-serde = "0.3" @@ -155,4 +156,4 @@ version = "0.29" features = ["bundled"] [target.'cfg(not(windows))'.dependencies.coredump] -version = "=0.1.2" \ No newline at end of file +version = "0.1" \ No newline at end of file