Proposal: Integrating JMAP Object Metadata Support in Stalwart for Enhanced Resource Extensibility

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.

  1. 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, and Metadata/queryChanges.

JMAP Metadata has been implemented already in the v1 branch.

1 Like