Improved mailboxes to include sent mails and drafts (#1038)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-10 10:48:54 +02:00
1 parent 67d44588d4
commit 5c319c45a0
31 files changed
+792 -103

No files matched your search

@@ -42,6 +42,7 @@ public sealed class MailboxSettingsTests
AuthMethod = MailboxAuthMethod.PASSWORD,
Username = "someone@example.org",
RootFolder = "INBOX/Projects",
IncludeSentAndDrafts = false,
MaxAge = MailboxMaxAge.LAST_24_MONTHS,
IndexAttachments = false,
MaxAttachmentSizeMegabytes = 25,
@@ -128,6 +129,14 @@ public sealed class MailboxSettingsTests
});
}
[Test]
public void AMailboxStoredBeforeSentMailsAndDraftsWereChoosableIncludesThem()
{
// So the next sync of a mailbox limited to a root folder fetches what it was missing:
var mailbox = JsonSerializer.Deserialize<DataSourceMailbox>("""{"RootFolder": "INBOX"}""", SettingsManager.JSON_OPTIONS);
Assert.That(mailbox.IncludeSentAndDrafts, Is.True);
}
[Test]
public void ValuesThisVersionCannotReadFallBackToTheSafeSide()
{