openaustralia / oaf

OpenAustralia Foundation
https://github.com/openaustralia/oaf#readme
4 stars 3 forks source link

Scrape deliverability information out of Cuttlefish. #278

Closed jamezpolley closed 5 years ago

jamezpolley commented 5 years ago
mlandauer commented 5 years ago

This sounds like a very good plan. @jamezpolley let me know if at any stage you need any help interpreting any weirdness in cuttlefish.

jamezpolley commented 4 years ago

it looks like the query I used for this is:

SELECT addresses.text, deliveries.created_at, deliveries.status
FROM deliveries INNER JOIN addresses
       ON deliveries.address_id = addresses.id
WHERE deliveries.id IN (SELECT MAX("deliveries"."id")
                        FROM "deliveries" 
                        WHERE "deliveries"."app_id" = 3
                           AND "deliveries"."status" IN ('delivered','hard_bounce')
                        GROUP BY "deliveries"."address_id");
mlandauer commented 4 years ago

@jamezpolley thanks for this! Did we end up using the information for the delivery time last year? Or did we just use it to populate the campaign monitor suppression list?

Also was there a reason that you didn't just export the cuttlefish blocklist to get the list of email addresses that had permanent delivery problems?