Prospects: Listmonk mailing lists, and their opt-outs
Settings → Email → Mailing lists connects Listmonk (the Core's, by default) with an API user and its token; Test reads the lists. A person in Review can be added to a list, with their company, title and signal: a double opt-in list asks them to confirm unless they already agreed; a single opt-in list takes them only once they have; a suppressed address is refused. Their card shows the lists they're on (a new list_members table). Every hour, or on Sync now, everyone blocklisted in Listmonk or unsubscribed from one of its lists goes on the suppression list, with the reason; an address already there keeps its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -671,6 +671,17 @@ CREATE TABLE link_opportunities (
|
||||
updated_at TEXT NOT NULL,
|
||||
UNIQUE (site, page_url)
|
||||
);
|
||||
`,
|
||||
// 29: the mailing lists (Listmonk) a prospect was added to.
|
||||
`
|
||||
CREATE TABLE list_members (
|
||||
contact_id INTEGER NOT NULL REFERENCES prospect_contacts (id) ON DELETE CASCADE,
|
||||
list_id INTEGER NOT NULL, -- Listmonk's
|
||||
list_name TEXT NOT NULL,
|
||||
confirmed INTEGER NOT NULL DEFAULT 0, -- 1: added as agreed; 0: Listmonk asked them to confirm
|
||||
at TEXT NOT NULL,
|
||||
PRIMARY KEY (contact_id, list_id)
|
||||
);
|
||||
`,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user