Commit Graph

13 Commits

Author SHA1 Message Date
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
b26887e05a 🎨 style: fix clippy warnings and clean up test code 2025-10-20 12:00:17 +01:00
Jeremiah Russell
084a643b74 🧪 test(gmail_client): add unit tests with comprehensive coverage for MessageSummary and public API 2025-10-20 12:00:17 +01:00
Jeremiah Russell
9bf69f3624 📝 docs(gmail_client): add comprehensive rustdoc with examples and guidance 2025-10-20 12:00:17 +01:00
Jeremiah Russell
73e9eed539 🐛 fix(gmail): fix token persistence path
- Use the persist_path from the config instead of a hardcoded path to ensure tokens are persisted to the correct location
2025-10-16 15:37:01 +01:00
Jeremiah Russell
591e528291 ♻️ refactor(gmail): use client config for gmail client
- Replace credential file path with client config struct
- Simplify client initialization and authentication using yup-oauth2
2025-10-16 11:21:40 +01:00
Jeremiah Russell
0bc71f5b75 ♻️ refactor: rename Config to Rules
- rename Config struct to Rules to better reflect its purpose
- update all references to Config to Rules
2025-10-15 12:39:20 +01:00
Jeremiah Russell
e3c78bc058 feat(gmail_client): add execute flag and EolRule
- add execute flag to control actual execution
- support EolRule to handle end-of-line characters
2025-10-14 07:41:39 +01:00
Jeremiah Russell
3d7f76b876 feat(gmail_client): add rule field to GmailClient struct
- Add rule field to GmailClient struct to store EolAction.
2025-10-14 07:41:39 +01:00
Jeremiah Russell
940daca729 feat(gmail): create gmail client struct
- create gmail client struct
- add label map
- add max results
- add label ids
- add query
- add messages
2025-10-14 07:41:39 +01:00
Jeremiah Russell
0dc8f8c47b ♻️ refactor(gmail): improve gmail client structure
- add clone derive to GmailClient struct
- rename get_messages to get_message_list for clarity
2025-10-14 07:41:39 +01:00
Jeremiah Russell
455deb8420 feat(gmail): add get messages functionality
- implement get_messages function to retrieve a list of messages from Gmail
- create a hub function to get the Gmail hub from the client
2025-10-14 07:41:39 +01:00
Jeremiah Russell
946398380b ♻️ refactor(gmail): rename labels.rs to gmail_client.rs
- Renamed `labels.rs` to `gmail_client.rs` for better clarity
- Refactor `Labels` struct to `GmailClient` for better naming
- Update `get_label_map` to use BTreeMap for label storage
- Remove the show flag functionality
2025-10-14 07:41:39 +01:00