<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Start Link</title>
    <description>The latest articles on DEV Community by Start Link (@start_link_a9978dc768635e).</description>
    <link>https://dev.to/start_link_a9978dc768635e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253170%2F1be8b032-6a87-4c7c-95e0-390621e243c6.gif</url>
      <title>DEV Community: Start Link</title>
      <link>https://dev.to/start_link_a9978dc768635e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/start_link_a9978dc768635e"/>
    <language>en</language>
    <item>
      <title>Keep email opt-outs when merging contact exports</title>
      <dc:creator>Start Link</dc:creator>
      <pubDate>Sun, 22 Nov 2026 04:29:48 +0000</pubDate>
      <link>https://dev.to/start_link_a9978dc768635e/keep-email-opt-outs-when-merging-contact-exports-383o</link>
      <guid>https://dev.to/start_link_a9978dc768635e/keep-email-opt-outs-when-merging-contact-exports-383o</guid>
      <description>&lt;p&gt;def merge_contacts(rows):&lt;br&gt;
    contacts = {}&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for row in rows:
    email = row["email"].strip().lower()
    if not email:
        raise ValueError("Missing email")

    contact = contacts.setdefault(
        email, {"email": email, "blocked": False}
    )
    contact["blocked"] |= row["opted_out"]

return contacts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;rows = [&lt;br&gt;
    {"email": "&lt;a href="mailto:SAM@example.com"&gt;SAM@example.com&lt;/a&gt; ", "opted_out": True},&lt;br&gt;
    {"email": "&lt;a href="mailto:sam@example.com"&gt;sam@example.com&lt;/a&gt;", "opted_out": False},&lt;br&gt;
    {"email": "&lt;a href="mailto:lee@example.com"&gt;lee@example.com&lt;/a&gt;", "opted_out": False},&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;expected = {&lt;br&gt;
    "&lt;a href="mailto:sam@example.com"&gt;sam@example.com&lt;/a&gt;": {"email": "&lt;a href="mailto:sam@example.com"&gt;sam@example.com&lt;/a&gt;", "blocked": True},&lt;br&gt;
    "&lt;a href="mailto:lee@example.com"&gt;lee@example.com&lt;/a&gt;": {"email": "&lt;a href="mailto:lee@example.com"&gt;lee@example.com&lt;/a&gt;", "blocked": False},&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;assert merge_contacts(rows) == expected&lt;br&gt;
assert merge_contacts(reversed(rows)) == expected&lt;/p&gt;

</description>
      <category>python</category>
      <category>tutorial</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Model replies and opt-outs as separate events in an outreach queue</title>
      <dc:creator>Start Link</dc:creator>
      <pubDate>Thu, 19 Nov 2026 07:37:18 +0000</pubDate>
      <link>https://dev.to/start_link_a9978dc768635e/model-replies-and-opt-outs-as-separate-events-in-an-outreach-queue-163l</link>
      <guid>https://dev.to/start_link_a9978dc768635e/model-replies-and-opt-outs-as-separate-events-in-an-outreach-queue-163l</guid>
      <description>&lt;p&gt;A follow-up can be due and still be wrong to send. Someone might reply after a worker pulled the job, or unsubscribe between two scheduled steps. Recheck eligibility before dispatch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate replies from opt-outs
&lt;/h2&gt;

&lt;p&gt;A reply stops the current sequence and can create a task for its owner. An opt-out suppresses future outreach within the scope of the request. If events arrive out of order, a reply should never clear an existing suppression.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the gap between selection and sending
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Queue a follow-up and let the worker select it.&lt;/li&gt;
&lt;li&gt;Record an opt-out before the worker calls the provider.&lt;/li&gt;
&lt;li&gt;Check that the worker skips the job and records why.&lt;/li&gt;
&lt;li&gt;Replay the same inbound event ID and check that it creates no additional tasks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If the provider accepts a send before the opt-out is recorded, the application may be unable to recall it. Keep provider acceptance separate from delivery status, and apply the suppression to any remaining steps.&lt;/p&gt;

&lt;p&gt;For the human handoff, see the &lt;a href="https://github.com/giftedsonbagh/StartLink-Public/blob/main/README.md" rel="noopener noreferrer"&gt;multichannel outreach planning checklist&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Disclosure: This post was generated with AI and published on behalf of &lt;a href="https://startlink.co/" rel="noopener noreferrer"&gt;Start Link&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
