Reference for the inbox sub-module of crm, which stores inbound RFQ e-mails and matches them to customer RFQs or marks them as spam.
This page describes the inbox sub-module of src/cluster_erp/modules/crm/. An inbox message (RfqInboxMessage) is an inbound e-mail about a customer RFQ, stored with its headers, bodies, and a match status. A message is matched to an RFQ automatically at creation or by hand, or marked as spam. Customer RFQs are described on RFQs.
A message created with an rfq_id must point at a live RFQ and is stored as auto_matched (src/cluster_erp/modules/crm/inbox/services.py:67-81).
Manual matching checks that the RFQ is live and sets manual_matched (src/cluster_erp/modules/crm/inbox/services.py:97-118).
spam sets match_status to spam (src/cluster_erp/modules/crm/inbox/services.py:119-131).
The list can filter by match status (src/cluster_erp/modules/crm/inbox/services.py:29-45).
Messages enter through POST /inbox/; a grep for RfqInboxMessage and crm_rfq_inbox_messages outside src/cluster_erp/modules/crm/ finds no other writer.
The module's privacy_handlers.py covers customer facets; a grep for inbox in it finds no handling of inbox messages (src/cluster_erp/modules/crm/privacy_handlers.py:1-12).