Skip to content

Add some automation to unsubscribing users that send spam complaints

Add some automation to unsubscribing users that send spam complaints

AWS SES (Simple email service) forwards spam complaints to our Zendesk instance. We ingest these tickets in this new utility script and unsubscribe any users associated with the email.

This script will:

  1. Fetch all tickets sent from AWS
  2. Process the .eml attachment to find who(which email) sent the complaint
  3. Unsubscribe any Gitter users associated with that email
  4. Add a comment to the ticket with what actions took place.
  5. If we were able to unsubscribe someone, will solve the ticket
  6. If any error took place while processing that specific ticket, will also put that on the ticket

Dev notes

See #2322 (closed) where dealt with automating Zendesk tickets before.

Todo

  • Add zendesk secrets to prod
Edited by Eric Eastwood

Merge request reports

Loading