codeforcroatia / imamopravoznati

Provide a Freedom of Information request system for your jurisdiction
http://alaveteli.org
Other
3 stars 1 forks source link

Get delivery status from Cuttlefish via Webhook #86

Open schlos opened 3 years ago

schlos commented 3 years ago

Current implementation will show only Cuttlefish transactional status (not end recipient server status): https://www.mysociety.org/2016/07/29/the-small-symbol-that-tells-you-all-is-well/

Webhook info - CfC admin for IPZ app: https://cuttlefish.oaf.org.au/apps/24/webhook

schlos commented 3 years ago

Blocker on Cuttlefish side: https://github.com/mlandauer/cuttlefish/issues/392 (fixed)

schlos commented 3 years ago

Test script: https://script.google.com/d/1c6FsRLQ2Xxukq_Fu2BuLqAixWqGgBy4N01ydiyrCFE5Tzpk_Lhl-ISoZ/edit?uiv=2&mid=ACjPJvEzBvo4BCPA1ZdoprwE6jqGagzANzLX1FNrdHD0wC1KlFYLDR4RPyeO4VilxZS68-SsryGD8BBAgFb22Z978I-mAvxvjiui0jU-Y9iatClezouQs0uA18GqHpVDirREyu4GivTUxTqJKlJ4_HnbFhC9Plol1CbqJFJQF7IsjwSzHDHdY4DmPCnG&splash=yes

Results: https://docs.google.com/spreadsheets/d/1hLQkjekYg2qT6kBKHGE6UeG-K8qsbl7qnYcaYWx2BQ8/edit#gid=0

schlos commented 3 years ago

Persist data in mail.log: https://github.com/mysociety/alaveteli/blob/develop/spec/models/outgoing_message_spec.rb#L1354