Skip to content

Add delegated-contact persistence and API #342

Description

@salmonumbrella

Summary

Add user-owned, thread-stable delegated-contact persistence, a bulk delegation API with idempotent IMAP/database behavior, automatic cleanup, and normalized delegation metadata on all mail and GTD read surfaces.

Scope

  • add the gtd_delegations schema with contact snapshots and user/account/thread ownership
  • add POST /api/gtd/delegations with per-target atomic partial outcomes
  • preserve existing person-less Delegated classification behavior
  • compensate newly copied IMAP labels when persistence fails
  • clean metadata after manual, automatic, and externally synchronized removal
  • enrich GTD, inbox, message, thread, and search payloads without N+1 contact queries

This is roadmap PR5 and is backend-only. It follows #341 and blocks the delegated-contact UI PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions