Answers.Body: <p>I checked in the code [<em>CRM_Mailing_Event_BAO_Resubscribe::resub_to_mailing()</em>] and the resubscribe function does not unfortunately leave any traces of the action (in logs or otherwise), does not do anything if the person is already included in the groups used for mailing, and just adds the contact to the groups used for mailing for which the contact has the 'Removed' status.</p>
  
  <p>So this leaves you with 2 sub-optimal solutions:</p>
  
  <ul>
  <li>if you want to start tallying these from now on, and have PHP programming skills, you can create a simple CiviCRM extension that would implement the hook unsubscribeGroups and log all operations of type 'resubscribe' (cf. <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_unsubscribeGroups" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_unsubscribeGroups</a>)</li>
  <li>if this is too late, or you do not have the skills, you can always search for contacts that have been recently added to the groups you are using for mailings, but this will be vastly incomplete as missing all contacts that have never been unsubscribed in the first place.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-28T01:02:19.597Z
Answers.Text: Not the answer I was hoping for, but this absolutely helps clear things up. Thank you very much. I think my own sub-optimal solution might be to remove anyone who has not opened an email in the past year and switch to a third party email service with more idiot-proof bounce processing.
Answers.UserDisplayName: Kate Golden
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-30T22:27:54.910Z
Answers.Text: While several years too late, someone with PHP skills could probably parse the web server logs to grab the visits to the resubscribe link and figure out who it was based on the URL arguments.  This wouldn't work if you allow unsubscribes via email though.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T04:26:34.263Z
Answers.LastActivityDate: 2016-06-23T04:26:34.263Z
Answers.UserDisplayName: cividesk
Body: <p>As a matter of ensuring consent is up to date, and because our bounce handling is broken, I have asked my newsletter subscribers to either resubscribe, unsubscribe or opt out. </p>
  
  <p>The unsubscribe and opt out appear to work properly.</p>
  
  <p>So now my list contains two sets: </p>
  
  <ul>
  <li>people who recently resubscribed (via the {action.resubscribeUrl
  token}</li>
  <li>people who did not recently resubscribe (inactive addresses,
  broken addresses, people who opened but didn't respond, people who
  didn't open this particular email).</li>
  </ul>
  
  <p>I would like to search for the first bunch (in part so I can infer who is in the second bunch). </p>
  
  <p>The mailing reports do not appear to track users' resubscribe actions and I can't find it in the Advanced Search. I also can't find any reference to the resubscribe action in the record of a particular user I know resubscribed.</p>
  
  <p>Can anyone explain how to do this?</p>
  
  <p>Thanks!</p>
  
Tags: <civimail><custom-search><unsubscribe>
Title: How do I find users who have resubscribed via {action.resubscribeUrl}?
ThreadText: # How do I find users who have resubscribed via {action.resubscribeUrl}?
  
  (Asked by: username_0 on 2016-06-02)
  
  As a matter of ensuring consent is up to date, and because our bounce handling is broken, I have asked my newsletter subscribers to either resubscribe, unsubscribe or opt out.
  
  The unsubscribe and opt out appear to work properly.
  
  So now my list contains two sets:
  
  * people who recently resubscribed (via the {action.resubscribeUrl
    token}
  * people who did not recently resubscribe (inactive addresses,
    broken addresses, people who opened but didn't respond, people who
    didn't open this particular email).
  
  I would like to search for the first bunch (in part so I can infer who is in the second bunch).
  
  The mailing reports do not appear to track users' resubscribe actions and I can't find it in the Advanced Search. I also can't find any reference to the resubscribe action in the record of a particular user I know resubscribed.
  
  Can anyone explain how to do this?
  
  Thanks!
  
  **Tags:** civimail, custom-search, unsubscribe
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-23. Score: 1 | Accepted answer
  
  I checked in the code [*CRM\_Mailing\_Event\_BAO\_Resubscribe::resub\_to\_mailing()*] and the resubscribe function does not unfortunately leave any traces of the action (in logs or otherwise), does not do anything if the person is already included in the groups used for mailing, and just adds the contact to the groups used for mailing for which the contact has the 'Removed' status.
  
  So this leaves you with 2 sub-optimal solutions:
  
  * if you want to start tallying these from now on, and have PHP programming skills, you can create a simple CiviCRM extension that would implement the hook unsubscribeGroups and log all operations of type 'resubscribe' (cf. <https://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_unsubscribeGroups>)
  * if this is too late, or you do not have the skills, you can always search for contacts that have been recently added to the groups you are using for mailings, but this will be vastly incomplete as missing all contacts that have never been unsubscribed in the first place.
  
  > **Comments:**
  > **username_0**: Not the answer I was hoping for, but this absolutely helps clear things up. Thank you very much. I think my own sub-optimal solution might be to remove anyone who has not opened an email in the past year and switch to a third party email service with more idiot-proof bounce processing.  
  > **username_2**: While several years too late, someone with PHP skills could probably parse the web server logs to grab the visits to the resubscribe link and figure out who it was based on the URL arguments.  This wouldn't work if you allow unsubscribes via email though.  
  
  ---
  
  