Files
wekan/docs/DeveloperDocs/Card-Email-Field-Inventory.json
T
Lauri Ojansivu 988b177e59 Email to card: board addresses, IMAP mailboxes, provider webhooks and Sandstorm grain email.
An email to a member's personal board address, board+<token>@<domain>,
becomes a card on that board, as Trello's email-to-board does (#794,
#3948). The subject is the title; the body (quoted replies stripped, HTML
as text) is the description, with a From line; attachments are attached
(no SVG, as for uploads). The author is the address's member, never the
From address, and they must still have write access when the email
arrives. A reply whose In-Reply-To/References matches a card's thread
becomes a comment on it.

Notification Settings, at three levels: the Admin Panel turns it on and
holds the domain, the provider webhook secret and the IMAP mailboxes with
their passwords (never published, never sent back to a browser); a board
admin turns the board on and picks the list and swimlane; board and
member choose which parts of an email are used. The member sees and
replaces their own address.

It arrives by POST /api/inbound-email (Mailgun, SendGrid, Postmark, JSON,
forms, multipart with attachments, raw MIME), by IMAP polling with
imapflow and mailparser under a database lease so one replica polls, or
on Sandstorm through the grain's own address: the bridge's Maildir is
read, a member's board token in the subject routes it, and WeKan's
outgoing email goes through HackSessionContext.send, since a grain has no
network. The email and hack-session capnp schemas are generated with the
other Sandstorm bindings.

Unknown addresses, wrong webhook secrets and over-limit addresses are
logged under authn.inbound-email. Rate limit per address, size limits,
Message-ID deduplication. The new strings are translated in every locale.

Thanks to xet7 !
2026-10-13 16:47:16 +03:00

79 lines
5.0 KiB
JSON

[
{
"fields": ["title", "description"],
"handling": "Footer resolves the authorized source card or board; stale link copies are excluded."
},
{
"fields": ["boardId", "listId", "swimlaneId", "sort", "subtaskSort", "listEnteredAt", "lastMoveReason"],
"handling": "Readable placement in ordinary Details and the separate local wrapper section; foreign list/lane names are excluded."
},
{
"fields": ["recurrenceInterval", "lastRecurrenceAt"],
"handling": "Ordinary Details and local wrapper Details; recurrence setters use the displayed card ID."
},
{
"fields": ["flowStartAt", "flowInterruptions", "flowUserId", "pomodoroStartAt", "pomodoroPhase", "pomodoroCount", "pomodoroUserId", "pomodoroWorkMinutes"],
"handling": "Persisted snapshots and public owner names in ordinary and local wrapper Details."
},
{
"fields": ["scrum"],
"handling": "Six visible fields in ordinary/local wrapper Details; sprint and release names require the same board. Internal Scrum snapshots and revisions are excluded."
},
{
"fields": ["archived", "archivedAt", "createdAt", "modifiedAt", "dateLastActivity", "cardNumber", "color"],
"handling": "Ordinary/source Details. Both link types separately include local archive state/date and lifecycle timestamps. Card number/color follow getRealCard(): source-owned for linked cards, local for linked-board wrappers. Target-board archive state remains in target Details."
},
{
"fields": ["receivedAt", "startAt", "dueAt", "endAt", "spentTime", "isOvertime", "dueComplete"],
"handling": "Ordinary/source Details. Linked-board Details includes four dates, spent time, overtime and due-complete from the current target."
},
{
"fields": ["members", "assignees", "requesters", "assigners", "requestedBy", "assignedBy", "userId"],
"handling": "Ordinary/source Details resolves public names for account references; requestedBy/assignedBy are prose. Linked-board Members and Assignees use deduplicated active target members with public names, matching card getters. Linked-board local creator/requesters/assigners appear separately with the wrapper board scope."
},
{
"fields": ["labelIds", "customFields", "stickers", "locationName", "locationAddress", "locationLatitude", "locationLongitude", "locations"],
"handling": "Ordinary/source Details with custom-field visibility and definition checks. Linked-board local Details renders these wrapper-owned fields with local definitions, admin visibility and policy fingerprints."
},
{
"fields": ["parentId", "parentIds", "cardDependencies", "targetId_gantt", "linkType_gantt"],
"handling": "Ordinary/source Details resolves authorized targets and groups duplicate labels. Linked-board wrapper relationships use the same authorized resolver and durable related-source evidence. Dependency color/icon are presentation metadata, not separate targets."
},
{
"fields": ["vote", "poker"],
"handling": "Ordinary/source and linked-board Details use disclosure checks. Private voter identities and unfinished Poker choices are excluded; voting configuration is not serialized wholesale."
},
{
"fields": ["coverId"],
"handling": "Live selected attachment manifest identifies the cover without exporting an internal ID."
},
{
"fields": ["type", "linkedId"],
"handling": "Control source resolution and durable identity checks; not raw prose fields."
},
{
"fields": ["scrumRevision", "syncSourceKey", "syncLastSource", "syncExternalId", "syncSourceType", "deletedAt", "deletedBy", "deleteBatchId", "linkId_gantt"],
"handling": "Internal provenance, revision, deletion and renderer identifiers are excluded; deletion still governs eligibility."
},
{
"fields": ["showActivities", "showListOnMinicard", "showListOnCard", "showChecklistAtMinicard", "hideFinishedChecklistIfItemsAreHidden"],
"handling": "Display preferences do not become email content. Discussion selection is controlled by the mail action."
},
{
"fields": ["mapX", "mapY"],
"handling": "Positions on the board's Map view image (#3256), as percentages of that image; they mean nothing without it, so they are not email content."
},
{
"fields": ["attachedCardIds"],
"handling": "#3257: ids of the cards attached to this one. Their titles are read only by someone who may read those cards (attachedCardsInfo), so these ids are not email content."
},
{
"fields": ["customFieldLinks"],
"handling": "#5681: ids of the cards whose custom fields are linked to this one, with the direction and the link's creator. Link bookkeeping, not card content: the linked values are ordinary customFields, so these ids are not email content."
},
{
"fields": ["email"],
"handling": "#794: the email this card came from or was sent as - sender, recipients, subject and the Message-IDs that thread replies onto it (server/emailToCard.js, server/emailView.js). Mail bookkeeping, not card content: excluded, so a card mailed onward never discloses who wrote to the board or the addresses of the conversation."
}
]