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>
18 lines
482 B
Dart
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,
|
|
});
|
|
}
|