Files
sharedinbox/lib/core/models/note.dart
T
Thomas SharedInboxandClaude Sonnet 4.6 fba5f065c4 feat: add per-email notes stored on IMAP/JMAP server (#436)
Notes are stored as messages in a dedicated Notes folder/mailbox on the
IMAP or JMAP server, keyed by the RFC 2822 Message-ID header via the
X-SharedInbox-Note-For custom header. This survives folder moves since
Message-IDs are stable.  Multiple users sharing one account see the
same notes.  A local Drift cache (schema v39, EmailNotes table) is kept
in sync on demand when the email detail screen is opened.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 16:51:59 +02:00

18 lines
482 B
Dart

class EmailNote {
final String id; // UUID (X-SharedInbox-Note-Id)
final String accountId;
final String messageId; // RFC 2822 Message-ID (X-SharedInbox-Note-For)
final String noteText;
final String serverId; // IMAP UID (as string) or JMAP email ID
final DateTime createdAt;
const EmailNote({
required this.id,
required this.accountId,
required this.messageId,
required this.noteText,
required this.serverId,
required this.createdAt,
});
}