Skip to content

Newsletters 0.1.11: Only subscribable CRM lists as audiences

Newsletters 0.1.11 narrows which CRM lists a broadcast can be aimed at, and stops a broadcast from losing its audience without warning.

Subscribable lists only

The broadcast editor’s CRM list picker now offers only lists marked as subscribable. Working segments such as suppliers, imports or internal groupings are no longer offered as broadcast audiences. This only affects new choices: a broadcast already aimed at such a list still shows and sends to it.

When a broadcast’s list dropped out of the picker, because it was archived or no longer subscribable, the browser selected the placeholder instead and the next save quietly removed the broadcast’s audience. The current list now stays visible as a disabled option marked (no longer selectable).

Other fixes

  • Variables in a sent email are replaced in a single pass. A value that itself contained a {{tag}}, such as a crafted user name, was expanded again by a later pass.
  • Message ids are now read from Exim receipts as well as Postfix-style ones.
  • The editor no longer looks up the same CRM list twice on every keystroke.
Full release notes: Newsletters 0.1.11

0.1.11 · 25 July 2026

Changed

  • The broadcast editor’s CRM list picker now offers only subscribable lists. Operational CRM segments (suppliers, imports, internal groupings) are no longer selectable as broadcast targets. The flag gates new selection only — a broadcast already pointing at such a list still resolves it for display and sending.

Fixed

  • A CRM list that fell out of the picker’s options (archived, or subscribable turned off after the broadcast picked it) left the browser selecting the placeholder, so the next save silently reset crm_list_uuid and the broadcast lost its audience with no warning. The current selection now stays visible as a disabled “(no longer selectable)” option.
  • DeliveryWorker message-id extraction now recognises Exim (250 OK id=<id>) and Amazon SES over SMTP (250 Ok <MessageID>) receipts alongside the Postfix-family queued as form; an unrecognised receipt still degrades to a nil message id rather than raising.
  • Variable substitution in delivered emails is now a single pass over the whole body. Previously each {{key}} was replaced in its own pass, so a variable value containing a literal {{other_key}} — a crafted username, say — was itself expanded by a later pass. An unknown {{tag}} still renders literally.
  • The broadcast editor issued two identical CRM get_list queries on every keystroke in the editor form (the archived-list warning and the stranded-selection fallback each resolved the same uuid independently); both now share one fetch.
  • CRMSource.list_lists/0 and list_subscribable_lists/0 had become byte-identical duplicate queries with different callers; list_lists/0 now delegates, so the filter can’t drift between the broadcast picker and the preference center.

Newsletters 0.1.11. Install or update: {:phoenix_kit_newsletters, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.