mlandauer / cuttlefish

Transactional email server with a lovely web interface
http://cuttlefish.io
Other
1.51k stars 176 forks source link

Add support for arbitrary metadata attached to emails #367

Closed mlandauer closed 4 years ago

mlandauer commented 4 years ago

In support of https://github.com/openaustralia/planningalerts/issues/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.

mlandauer commented 4 years ago

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.