TrustTheVote-Project / horatio-server

Turns JSON absentee ballot requests into PDFs and delivers them to registrars.
MIT License
1 stars 3 forks source link

Create the bounce method #27

Closed waldoj closed 9 years ago

waldoj commented 9 years ago
waldoj commented 9 years ago

JSON and Mailgun ID stored with 041be1e0fc38214d67552f24f4d05bf494a4d73c.

waldoj commented 9 years ago

I've submitted a request for guidance to info@elections.virginia.gov, regarding to what email address absentee ballot requests should be submitted in the absence of a functioning registrar email address.

waldoj commented 9 years ago

In fact, it should sent to info@elections.virginia.gov. So that was easy.

waldoj commented 9 years ago

I think maybe I can abuse tagging to include AB IDs in the message. I just need to verify that the tags are exposed by the bounce webhook.

waldoj commented 9 years ago

Yes, tags are included. Bingo.

waldoj commented 9 years ago

On second thought, this appears to be the preferred method of attaching data to messages. I just need to figure out if this is exposed via sendMessage().

waldoj commented 9 years ago

Ah-ha: there is a limit to the number of tags that can be used per account. OK, so it's essential that IDs be passed via X- headers. And that's better, anyway, for MTA agnosticism.

waldoj commented 9 years ago

I decided to use a customer X-AB-ID header instead of using Mailgun's custom, JSON-encoded header. That will simplify portability.