Commit Graph

8 Commits

Author SHA1 Message Date
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