Commit Graph

666 Commits

Author SHA1 Message Date
renovate[bot]
468fa0bcc0 fix(deps): update rust crate log to 0.4.29 2026-01-12 16:27:19 +00:00
Jerus Bot
ad4abc1ed0 chore: update prlog for pr
Signed-off-by: Jerus Bot <171541392+jerus-bot@users.noreply.github.com>
2026-01-12 16:24:49 +00:00
Jeremiah Russell
0c80abe927 fix: replace deprecated cargo_bin method with macro
Update integration tests to use assert_cmd::cargo_bin! macro instead
of the deprecated Command::cargo_bin() method. The method was
deprecated in assert_cmd 2.1.0 due to incompatibility with custom
cargo build-dir configurations.

Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
2026-01-12 16:24:49 +00:00
Jeremiah Russell
e3555275fb fix: upgrade google-gmail1 to v7 to resolve security advisory
Upgrade google-gmail1 from 6.0.0 to 7.0.0 which uses yup-oauth2 v12
that no longer depends on the unmaintained rustls-pemfile crate.

This resolves RUSTSEC-2025-0134 (rustls-pemfile unmaintained).

Breaking changes addressed:
- Updated InstalledFlowAuthenticator to use CustomHyperClientBuilder
- Added hyper-rustls with http1 feature for OAuth redirect flow

Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
2026-01-12 16:24:49 +00:00
Jeremiah Russell
efeb118dcd feat!: migrate to circleci-toolkit v4.2.1
- Convert pipeline parameters from kebab-case to snake_case
- Update orb version from 2.13.5 to 4.2.1
- Remove custom executors

BREAKING CHANGE: Pipeline parameters renamed to snake_case

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
2026-01-12 16:24:49 +00:00
Jerus Bot
3702122221 chore: update prlog for pr 2025-11-24 15:48:23 +00:00
renovate[bot]
45c03a4753 fix(deps): update rust crate temp-env to 0.3.6 2025-11-24 15:48:23 +00:00
Jerus Bot
b017ed2f27 chore: update prlog for pr 2025-11-24 15:44:22 +00:00
renovate[bot]
f4428fc122 fix(deps): update rust crate predicates to 3.1.3 2025-11-24 15:44:22 +00:00
Jerus Bot
5d38536537 chore: update prlog for pr 2025-11-24 15:40:06 +00:00
renovate[bot]
bcdcf1c0b4 fix(deps): update rust crate lazy-regex to 3.4.2 2025-11-24 15:40:06 +00:00
Jerus Bot
6a237ffa4a chore: update prlog for pr 2025-11-24 15:34:46 +00:00
renovate[bot]
be7b20c266 fix(deps): update rust crate httpmock to 0.8.2 2025-11-24 15:34:46 +00:00
Jerus Bot
2de07bd60a chore: update prlog for pr 2025-11-24 15:27:55 +00:00
renovate[bot]
476f2dd8fa fix(deps): update rust crate futures to 0.3.31 2025-11-24 15:27:55 +00:00
Jerus Bot
b1e5de5fef chore: update prlog for pr 2025-11-24 14:56:21 +00:00
renovate[bot]
4342a9e7b9 fix(deps): update rust crate flate2 to 1.1.5 2025-11-24 14:56:21 +00:00
Jerus Bot
07997f7b95 chore: update prlog for pr 2025-11-24 13:50:58 +00:00
renovate[bot]
ebca739baa fix(deps): update rust crate config to 0.15.19 2025-11-24 13:50:58 +00:00
Jerus Bot
c5d64b8ae5 chore: update prlog for pr 2025-11-24 12:58:01 +00:00
renovate[bot]
30d43b0a63 fix(deps): update rust crate clap to 4.5.53 2025-11-24 12:58:01 +00:00
Jerus Bot
9b260a5b34 chore: update prlog for pr 2025-11-24 12:44:09 +00:00
renovate[bot]
45f0c91cbe fix(deps): update rust crate base64 to 0.22.1 2025-11-24 12:44:09 +00:00
Jerus Bot
475a840ada chore: update prlog for pr 2025-11-24 12:15:27 +00:00
Jeremiah Russell
0ca55978d0 📦 build(dependencies): upgrade several dependencies
- upgrade indicatif from 0.17 to 0.18.3
- upgrade other dependencies to the latest version
2025-11-24 12:15:27 +00:00
renovate[bot]
3d8ffa6298 fix(deps): update rust crate assert_fs to 1.1.3 2025-11-24 12:15:27 +00:00
Jerus Bot
f73c005a30 chore: update prlog for pr 2025-10-31 16:09:05 +00:00
Jeremiah Russell
724f444133 🔧 chore(rules_cli): enhance CLI command structure with clap attributes
- add clap attributes for better command organization
- improve subcommand naming and aliases for usability
- attributes disabled as dependent on future clap feature
2025-10-31 16:09:05 +00:00
Jeremiah Russell
8f910772dd 🔧 chore(dependencies): clap test and tidy ups
- explicitly list tokio features for clarity and maintainability
2025-10-31 16:09:05 +00:00
Jerus Bot
5bf794438b chore: update prlog for pr 2025-10-31 14:42:32 +00:00
Jeremiah Russell
209b8a6a46 feat(cli): restructure rules config CLI
- 【Refactor】Move label subcommands (add, list, remove) into separate modules for better organization
- 【Refactor】Rename `LabelCli` to `ListLabelCli`, `AddCli` to `AddLabelCli`, and `RemoveCli` to `RemoveLabelCli`
- 【Refactor】Rename `LabelCommands` to `List`, `Add`, and `Remove`
- 【Refactor】Rename `remove-rule` alias to `rm-rule` and `remove-label` alias to `rm-label`
- 【Feat】Add `ListLabelCli`, `AddLabelCli`, and `RemoveLabelCli` to handle label-related operations
- 【Feat】Update `ConfigCli` to use the new label subcommands and modules
- 【Remove】Remove the `label_cli.rs` file as its functionality is now distributed
2025-10-31 14:42:32 +00:00
Jeremiah Russell
9773327e86 ♻️ refactor(cli): rename rule management subcommands for clarity
- rename `add`, `rm`, and `action` subcommands to `add-rule`, `remove-rule`, and `set-action-on-rule` respectively to improve clarity
- update corresponding modules and structs to reflect the renaming, enhancing code readability and maintainability
2025-10-31 14:42:32 +00:00
Jerus Bot
b64b2d00bd chore: update prlog for pr 2025-10-31 12:03:15 +00:00
Jeremiah Russell
b10dcbf8a9 feat(cli): enhance rules configuration
- introduce subcommands for listing, adding, and removing rules
- improve cli structure for better user experience
2025-10-31 12:03:15 +00:00
Jerus Bot
f0a5dde809 chore: update prlog for pr 2025-10-31 11:03:38 +00:00
Jeremiah Russell
a512792774 🐛 fix(client): fix config root parsing
- add debug logging for configurations to aid in troubleshooting
2025-10-31 11:03:38 +00:00
Jerus Bot
c2c1df2629 chore: update prlog for pr 2025-10-31 09:40:30 +00:00
Jeremiah Russell
bf8d1c3cf4 feat(cli): add optional rules path argument to cli
- allow users to specify a rules file path via command line argument
- update run_with_rules_path to prioritize cli argument over config file
2025-10-31 09:40:30 +00:00
Jerus Bot
14c7d6435e chore: Release cull-gmail v0.0.16 2025-10-30 22:38:11 +00:00
Jerus Bot
7febf50c27 chore: update prlog for pr 2025-10-30 13:46:19 +00:00
Jeremiah Russell
87e9e47395 🐛 fix(rule_processor): enhance logging for chunk processing
- change trace logs to info logs for chunk processing in rule_processor
- improve visibility of chunk processing status and debugging
2025-10-30 13:46:19 +00:00
Jerus Bot
2da4642c06 chore: update prlog for pr 2025-10-30 13:36:40 +00:00
Jeremiah Russell
e9eccb6ef6 🐛 fix(cli): correct rule execution order for trash and delete
- correct the order of rule execution to delete before trashing
- trashed messages will not be deleted
2025-10-30 13:36:40 +00:00
Jeremiah Russell
dc41101dcb ♻️ refactor(rules): execute rules by action
- executes rules by action: `Trash` first, then `Delete`
- a label may have a `trash` and `delete` rule applied
2025-10-30 12:26:12 +00:00
Jerus Bot
0d670d3b68 chore: update prlog for pr 2025-10-30 12:26:12 +00:00
Jeremiah Russell
cb53faf3b3 feat(rules): support multiple actions per label
- support trash and delete actions for the same label
- add `run_rules_for_action` function to filter rules by action
- update `get_rules_by_label` to `get_rules_by_label_for_action`
- update `find_label` to return a vector of rule ids
- update `remove_rule_by_label` to remove all rules with the label
2025-10-30 12:26:12 +00:00
Jeremiah Russell
afe798dae0 📝 docs(rule_processor): clarify Gmail API scope requirement
- refine the documentation for batch_delete and call_batch_delete functions
- specify the exact `https://mail.google.com/` scope needed
2025-10-30 10:40:29 +00:00
Jeremiah Russell
cc57a6aec8 ♻️ refactor(gmail): consolidate batch processing logic
- introduce process_in_chunks for DRY principle
- remove redundant chunking logic from batch_delete
- update documentation for API scope requirements
2025-10-30 10:40:29 +00:00
Jerus Bot
99d9c09aa1 chore: update prlog for pr 2025-10-30 10:40:29 +00:00
Jeremiah Russell
fc85f46e80 ♻️ refactor(rule_processor): enhance Gmail message handling with chunk processing
- introduce `process_in_chunks` for batch operations to respect API limits
- refactor `batch_trash` to use `process_in_chunks` for efficient trashing
- add documentation for `process_in_chunks` explaining chunking and API limits
2025-10-30 10:40:29 +00:00