First time Discourse user, impressed at how well made but at the same hackable the app is! In order to avoid running a mail server I want to get Postmark working with Discourse. They have a webhook for inbound mail, that sends a JSON payload containing the parsed email. For example, it parses the From field into several attributes, same for the CC field, et c.
Optionally, you can tell Postmark to include the raw email in a
RawEmail attribute. Unfortunately the name of the attribute cannot be changed to
handle_mail endpoint expects.
There are two options I can think of:
- add a one line bodge to
handle_mailto rename the
- create a new endpoint that will add the ready parsed email to the job queue, then add a new method to the receiver to handle ready-parsed email objects
Any preference for a PR/way forward?