feat: Add Gmail API sync workflow and integrate related data models

This commit is contained in:
rustmailer
2025-09-01 23:50:00 +08:00
parent 4b44a38f80
commit 7411233b48
50 changed files with 2811 additions and 200 deletions
+4
View File
@@ -48,6 +48,8 @@ pub enum ErrorCode {
SmtpConnectionFailed = 50040,
MailBoxNotCached = 50050,
AutoconfigFetchFailed = 50060,
GmailApiCallFailed = 50070,
GmailApiInvalidHistoryId = 50080,
// Message queue errors (6000060999)
NatsRequestFailed = 60000,
@@ -83,6 +85,8 @@ impl ErrorCode {
ErrorCode::InternalError
| ErrorCode::AutoconfigFetchFailed
| ErrorCode::ImapCommandFailed
| ErrorCode::GmailApiCallFailed
| ErrorCode::GmailApiInvalidHistoryId
| ErrorCode::ImapUnexpectedResult
| ErrorCode::HttpResponseError
| ErrorCode::NatsRequestFailed