Skip to content

app.inbound_messages

TableRow level security on

Mail received (Section 4.6.5): forwarded to a project inbox, or a reply to a notification email from a signed reply address. A reply is accepted only after DKIM verification and with quoted text stripped.

Primary key: id

Columns of app.inbound_messages
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org. A row never moves to another org.References app.organizations.id
purposeapp.inbound_purposeNoProject Inbox or Reply.
inbound_address_iduuidYesProject inbox the mail was sent to.References app.inbound_addresses.id
reply_person_iduuidYesPerson the signed reply address belongs to.References app.people.id
reply_subject_tabletextYesTable of the thread the reply belongs to.
reply_subject_iduuidYesRow of the thread the reply belongs to.
from_addresstextNoSender address from the envelope.
subject_linetextYesSubject header.
message_id_headertextNoMessage-ID header, unique per org so a redelivery is not filed twice.
dkim_verifiedbooleanNoTrue when the sender's DKIM signature verified.
body_texttextYesPlain-text body with quoted text stripped.
raw_object_pathtextNoWhere the raw message is kept. Through Resend: its object name in the private inbound-mail bucket, <org id>/resend/<email id>.eml (1651), or resend:<email id> when it was over 50 MiB and only Resend keeps it, for 30 days. Through a provider posting a parsed message: the path that provider sent.
inbound_statusapp.inbound_statusNoReceived, Verified, Filed or Rejected.
rejection_reasontextYesWhy the message was rejected.
filed_document_iduuidYesDocument record the coordinator filed the mail as.References app.documents.id
received_attimestamp with time zoneNoWhen the mail arrived. Set by the database.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.
posted_comment_iduuidYesComment a verified reply was posted as.References app.comments.id
filed_record_iduuidYesRecord of the inbox's project the mail was filed to, if any; the mail is posted there as a comment.References app.records.id
filed_byuuidYesPerson who filed the mail. Set by the database.References app.people.id
filed_attimestamp with time zoneYesWhen the mail was filed. Set by the database.
discarded_attimestamp with time zoneYesWhen a coordinator discarded the mail. Set by the database; discarded mail is kept and never filed.
discarded_byuuidYesPerson who discarded the mail. Set by the database.References app.people.id
discard_reasontextYesWhy the mail was discarded, if the coordinator said.