using AIStudio.Tools.Mail;
namespace AIStudio.Tools.Databases.IndexStore;
///
/// What a list of mails shows about one of them, without its text.
///
/// The id of the mail.
/// The subject of the mail.
/// When the mail arrived at the server.
/// When the sender says the mail was written, or null when it does not say so readably.
/// The Message-ID header, empty when the mail has none.
/// The Message-ID the In-Reply-To header names, empty when there is none.
/// The addresses from the header, grouped by their role.
/// The folders the mail lies in, ordered by path.
/// The flags of the mail; each one is set when it is set in any folder.
/// How important the sender marked the mail.
/// How the content of the mail is encrypted, NONE when it is not.
/// The file names of the attachments, in their order.
public sealed record MailSummary(
string MailId,
string Subject,
DateTimeOffset ReceivedAtUtc,
DateTimeOffset? SentAtUtc,
string MessageId,
string InReplyTo,
IReadOnlyList Addresses,
IReadOnlyList FolderPaths,
MailFlags Flags,
MailImportance Importance,
MailEncryptionKind EncryptionKind,
IReadOnlyList AttachmentNames);