anonaddy icon indicating copy to clipboard operation
anonaddy copied to clipboard

Webhooks?

Open amaury1093 opened this issue 5 years ago • 6 comments

First, I'd like to start by saying that this product is great, thanks!

I have a request for my use case: would it be possible to add webhooks?

In the settings page, the user could add an optional endpoint https://api.user.personal.website.com, and, if set, all emails (incl subject, body, attachments) would be sent to this webhook upon receival.

I would like to set up my own personal endpoint, and do some basic parsing operations on the raw emails I receive from others.

If webhooks are set up, this tool could be easily integrated e.g. via Zapier to a wide range of other services. I know it might go against the privacy vision of the app, but again, the webhook will be optional for users.

amaury1093 avatar Apr 17 '20 09:04 amaury1093

That is a great idea. I do currently have this on my to do list and might try to implement it into the new rules system as one of the actions that can be carried out.

How do you think failed webhook deliveries should be handled?

willbrowningme avatar Apr 28 '20 09:04 willbrowningme

As a 1st version, I'd say on error just send an email to the user with the HTTP response. I think that's what Github does tbh, go to /settings/hooks in any repo.

Would also be wise to see how services like Zapier handle failed webhook calls. Probably they store all webhook calls in a DB, with a dashboard to see all your past webhook deliveries & errors. But on AnonAddy that could be for later.

amaury1093 avatar Apr 28 '20 10:04 amaury1093

Really good idea to support webhook as receipts, there should be also support to add Discord and Slack webhooks so you can receive emails on Discord in embed format. Or option to add custom webhook URL where email subject, body, sender and other data would be POSTED in json format

ririko5834 avatar May 27 '23 11:05 ririko5834

How do you think failed webhook deliveries should be handled?

It should be logged to Failed deliveries and tried to be recalled. Or there should also be an option to set up a fallback email address for webhook recipients where emails would be forwarded in case webhook doesn't return 20x status code.

ririko5834 avatar May 27 '23 11:05 ririko5834