Commit Graph

14 Commits

Author SHA1 Message Date
Jeremiah Russell
32db9cb51a feat(error): add invalid message age error
- add `InvalidMessageAge` error variant to the `Error` enum
- include a message parameter to provide details about the invalid age
2025-10-19 07:54:12 +01:00
Jeremiah Russell
c53ad65368 feat(cli): add config file support
- load configuration from a file
- use config crate for config loading
- allow overriding config with environment variables
- set default credential path
- fix error handling for config loading
2025-10-15 16:08:38 +01:00
Jeremiah Russell
c5ba366ade feat(error): add NoLabelsFound error
- add `NoLabelsFound` error type to handle cases where no labels are found in the mailbox
2025-10-14 07:41:39 +01:00
Jeremiah Russell
8003cdd76a 🐛 fix(error): correct spelling error in error message
- fix typo "LableNotFoundInMailbox" to "LabelNotFoundInMailbox"
2025-10-11 09:35:12 +01:00
Jeremiah Russell
7ab715c848 🐛 fix(error): add error type for no query string calculated
- add `NoQueryStringCalculated` error to handle cases where a query string could not be calculated for a given rule
2025-10-11 09:35:12 +01:00
Jeremiah Russell
244158f538 🐛 fix(error): add specific error for missing label in mailbox
- add `LableNotFoundInMailbox` error to handle cases where a label is not found in the mailbox
2025-10-11 09:35:12 +01:00
Jeremiah Russell
3628f6a291 feat(error): add RuleNotFound error
- add new error type for when a rule is not found by ID
2025-10-09 09:53:09 +01:00
Jeremiah Russell
9e5b0a2cdd 🐛 fix(error): improve error message for missing labels
- enhance error message for `LabelNotFoundInRules` to include the missing label
2025-10-08 17:37:49 +01:00
Jeremiah Russell
572a01e8dd 🐛 fix(error): refine error message for rule selector
- clarify that the rule selector can be either --id or --label
2025-10-08 16:33:31 +01:00
Jeremiah Russell
3aa76a20a8 feat(error): add custom error types for rule selection
- introduce `NoRuleSelector`, `NoRuleFoundForLabel`, and `LabelNotFoundInRules` errors
- these errors provide more specific feedback when rule selection fails
2025-10-08 16:25:06 +01:00
Jeremiah Russell
c4e4e28f66 🐛 fix(error): refine error handling with granular variants
- introduce specific error variants for std::io::Error and toml::de::Error
- remove commented-out error variants to streamline error reporting
2025-10-07 15:59:18 +01:00
Jeremiah Russell
465a590a09 feat(error): add error type for invalid paging mode
- add `InvalidPagingMode` error to handle invalid paging options
2025-10-03 11:03:17 +01:00
Jeremiah Russell
5d9bee1197 feat(error): enhance error handling for configuration issues
- add specific error variants for unset directory, home expansion failure, and directory creation failure
- improve error reporting by providing more context in error messages
2025-10-02 15:33:00 +01:00
Jeremiah Russell
cd149b0d53 feat(error): introduce custom error enum for cull-gmail
- define `Error` enum to encapsulate errors from google_gmail1 and google_clis_common
- use `thiserror` crate for simplified error handling
2025-10-02 15:33:00 +01:00