mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-12 21:13:48 +00:00
Improved mailboxes to include sent mails and drafts (#1038)
This commit is contained in:
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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user