Extending Stalwart’s core schemas (FileNode, Email, Calendar) to support custom attributes (such as tags, notes / comments, favorite flags and thumbnails for Files - Emails can be tagged via keyword) can be achieved through two primary architectural patterns.
2. Approach A (Inline Attributes):
-
Mechanism: Integrating metadata directly into core objects using native key-value map properties or following the IETF JMAP Object Metadata draft specification for tightly coupled annotations.
-
Pros: Extremely fast lookups and retrieval of attributes within a single query alongside the main object fetch.
- Approach B (Standalone Metadata Extension):
-
Mechanism: Decoupling metadata into a dedicated object layer using independent extension protocols and crates such as
jmap-metadata-server. -
Methods Supported:
Metadata/get,Metadata/set,Metadata/query,Metadata/changes, andMetadata/queryChanges.
-