CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Automatically process Gmail-generated unsubscribes
Pages: [1]

Author Topic: Automatically process Gmail-generated unsubscribes  (Read 3092 times)

LouieGeetoo

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.08
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.54-community-log
  • PHP version: 5.2.8
Automatically process Gmail-generated unsubscribes
May 23, 2012, 08:19:27 am
Hello,

Gmail now has a feature in which you can click an "unsubscribe from this sender" link in the Gmail interface. Gmail then just automatically replies with the following message:

Subject: unsubscribe

Body: This message was automatically generated by Gmail.

These emails currently get processed by CiviMail (since it moves them to the "processed" folder rather than the "ignored" one) but it doesn't do anything with them, and so we need to go in and opt-out each contact manually when we see these replies. How can I make CiviMail automatically opt-out contacts who have had Gmail reply with this message?

I tried adding a bounce pattern directly in the database for "unsubscribe", but I'm not sure if that will work (it doesn't seem to). Any ideas?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Automatically process Gmail-generated unsubscribes
May 23, 2012, 09:23:24 am
What did you insert exactly ? (it should work, basically we have several regexp and a level saying if it should be directly put on hold or wait several emails of this time (eg. mailbox full isn't directly put on hold)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

LouieGeetoo

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.08
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.54-community-log
  • PHP version: 5.2.8
Re: Automatically process Gmail-generated unsubscribes
May 23, 2012, 10:38:46 am
I added both of these to the mailing_bounce_pattern table:

idbounce_type_idpattern
12510unsubscribe
12610This message was automatically generated by Gmail.

According to the mailing_bounce_type table, type id 10 is "Spam" which has a hold_threshold of 1. It seemed the closest, since there's no "Unsubscribe" category. I tried testing this by clearing caches, sending a blast to my own Gmail address, and using the unsubscribe link, but my contact was not put on hold and no bounce was recorded in the report (though one open was recorded -- does a recorded open pre-empt a bounce?)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Automatically process Gmail-generated unsubscribes

This forum was archived on 2017-11-26.