mlandauer/cuttlefish

Add support for arbitrary metadata attached to emails

Closed this issue · 1 comments

In support of openaustralia/planningalerts#1466 it would be fantastic to be able to attach metadata to emails when sending them through cuttlefish.

This metadata could for instance record what kind of email we're sending (e.g. "alert" or "comment") and could include the id's from the originating application. This would be so helpful.

I think it would be sufficient to allow metadata with multiple keys all with string values. It would be up to the client to understand how to interpret those strings.

That way we can also just use headers in the SMTP email to represent values and not have to worry about typing.

We should also be able to view the metadata values for a specific email in the UI and be able to search for emails with particular key/value pairs though these features probably should be split out into their own issues so we don't overwhelm this one.