namespace AIStudio.Tools.Mail;
///
/// What tells one mail apart from all others on a server, as MailContentKey reads it.
///
/// The EMAILID of RFC 8474, or null when the server does not know OBJECTID.
/// The X-GM-MSGID, or null when the server is not Gmail.
/// The Message-ID header, or null when the mail has none.
/// The Date header, or null when the mail has none or it cannot be read.
/// The addresses of the From header, in their order.
/// The subject, or null when the mail has none.
/// The size of the mail on the server (RFC822.SIZE), in bytes.
public sealed record MailIdentity(string? EmailId, ulong? GmailMessageId, string? MessageId, DateTimeOffset? Date, IReadOnlyList FromAddresses, string? Subject, long Size);