Answers.Body: <p>They are most likely using <a href="https://powerdmarc.com/one-click-unsubscribe-email-requirement" rel="nofollow noreferrer">one-click unsubscribe</a>. In early 2024, Google and Yahoo mandated that bulk emails support them, so <a href="https://civicrm.org/make-it-happen/support-one-click-unsubscribe" rel="nofollow noreferrer">CiviCRM added them</a>. So there's an &quot;unsubscribe&quot; link at the top of these emails in GMail.</p>
  <p>I wrote an extension to remove them if you disable the requirement for an unsubscribe link. I haven't published it, but I could if that's helpful.  But for the techies, the code itself is right here:</p>
  <pre><code>function nounsubheader_civicrm_alterMailParams(&amp;$params, $context) {
    // Don't add &quot;List-Unsubscribe&quot; header if the mailing doesn't have an unsubscribe token.
    if (Civi::settings()-&gt;get('disable_mandatory_tokens_check')) {
      unset($params['List-Unsubscribe']);
    }
  }
  </code></pre>
  <p><strong>UPDATE:</strong> It seems there's an easier option now - <strong>Administer » CiviMail » Mailer Settings</strong>, looks like you can remove <code>HTTP(S) One-Click</code> from the <em>Unsubscribe Methods</em>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-05T10:42:22.933Z
Answers.Text: Thank you, Jon. We don't want to remove the ability to unsubscribe, but want to understand the process behind it. Anyway, we have mostly users beyond Gmail and Yahoo who obviously see this one-click-thing, too.
Answers.UserDisplayName: Regina Sommerfeld
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-01T13:57:50.807Z
Answers.LastActivityDate: 2024-11-01T19:20:16.277Z
Answers.LastEditDate: 2024-11-01T19:20:16.277Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>sometimes we have unsubscribed users in our mailing reports, but there was no unsubscribe-link in the mail (no newsletter!). How did the user manage to unsubscribe?</p>
  <p>We use Mosaico templates and CiviMail.
  The environment is a CiviCRM 5.78.2 with WordPress 6.6.2</p>
  <p>Thanks,
  Regina</p>
  
Tags: <civimail><mosaico><unsubscribe>
Title: Mailing reports: unsubscribed users
ThreadText: # Mailing reports: unsubscribed users
  
  (Asked by: username_0 on 2024-10-31)
  
  sometimes we have unsubscribed users in our mailing reports, but there was no unsubscribe-link in the mail (no newsletter!). How did the user manage to unsubscribe?
  
  We use Mosaico templates and CiviMail.
  The environment is a CiviCRM 5.78.2 with WordPress 6.6.2
  
  Thanks,
  Regina
  
  **Tags:** civimail, mosaico, unsubscribe
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-11-01. Score: 2
  
  They are most likely using one-click unsubscribe. In early 2024, Google and Yahoo mandated that bulk emails support them, so CiviCRM added them. So there's an "unsubscribe" link at the top of these emails in GMail.
  I wrote an extension to remove them if you disable the requirement for an unsubscribe link. I haven't published it, but I could if that's helpful.  But for the techies, the code itself is right here:
  function nounsubheader_civicrm_alterMailParams(&$params, $context) {
    // Don't add "List-Unsubscribe" header if the mailing doesn't have an unsubscribe token.
    if (Civi::settings()->get('disable_mandatory_tokens_check')) {
      unset($params['List-Unsubscribe']);
    }
  }
  
  UPDATE: It seems there's an easier option now - Administer » CiviMail » Mailer Settings, looks like you can remove HTTP(S) One-Click from the Unsubscribe Methods.
  
  > **Comments:**
  > **username_0**: Thank you, Jon. We don't want to remove the ability to unsubscribe, but want to understand the process behind it. Anyway, we have mostly users beyond Gmail and Yahoo who obviously see this one-click-thing, too.  
  
  ---
  
  