Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ extension GmailService: MessageProvider {

let query = createMessageQuery(identifier: identifier, format: kGTLRGmailFormatFull)
return try await withCheckedThrowingContinuation { continuation in
self.gmailService.executeQuery(query) { _, data, error in
self.gmailService.executeQuery(query) {
_,
data,
error in
if let error {
return continuation.resume(throwing: GmailApiError.providerError(error))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ extension Message {
var replyTo: String?
var inReplyTo: String?
var rfc822MsgId: String?
var replyToMsgId: String?
var isSuspicious = false

for messageHeader in messageHeaders.compactMap({ $0 }) {
Expand All @@ -58,7 +59,9 @@ extension Message {
case .cc: cc = value
case .bcc: bcc = value
case .replyTo: replyTo = value
case .inReplyTo: inReplyTo = value
case .inReplyTo:
inReplyTo = value
replyToMsgId = value
case .receivedSPF: isSuspicious = value.contains("softfail")
case .identifier: rfc822MsgId = value
default: break
Expand All @@ -84,6 +87,7 @@ extension Message {
bcc: bcc,
replyTo: replyTo,
inReplyTo: inReplyTo,
replyToMsgId: replyToMsgId,
isSuspicious: isSuspicious
)
}
Expand Down