Fixing issues with replies.

This commit is contained in:
Burak Kaan Köse
2026-04-07 01:17:52 +02:00
parent 12acff3bf8
commit 9855170b2e
8 changed files with 408 additions and 105 deletions
+3 -3
View File
@@ -2030,13 +2030,13 @@ public class GmailSynchronizer : WinoSynchronizer<IClientServiceRequest, Message
}
if (string.IsNullOrEmpty(copy.MessageId))
copy.MessageId = mime.MessageId;
copy.MessageId = MailHeaderExtensions.NormalizeMessageId(mime.Headers[HeaderId.MessageId]);
if (string.IsNullOrEmpty(copy.InReplyTo))
copy.InReplyTo = mime.InReplyTo;
copy.InReplyTo = MailHeaderExtensions.NormalizeMessageId(mime.InReplyTo);
if (string.IsNullOrEmpty(copy.References) && mime.References?.Count > 0)
copy.References = string.Join(";", mime.References);
copy.References = MailHeaderExtensions.JoinStoredReferences(mime.References);
if (!copy.HasAttachments && mime.Attachments.Any())
copy.HasAttachments = true;