[GH-ISSUE #42] Webhooks? #86

Open
opened 2026-03-01 17:44:41 +03:00 by kerem · 6 comments
Owner

Originally created by @amaury1093 on GitHub (Apr 17, 2020).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/42

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.

Originally created by @amaury1093 on GitHub (Apr 17, 2020). Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/42 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.
Author
Owner

@willbrowningme commented on GitHub (Apr 28, 2020):

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?

<!-- gh-comment-id:620491288 --> @willbrowningme commented on GitHub (Apr 28, 2020): 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?
Author
Owner

@amaury1093 commented on GitHub (Apr 28, 2020):

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.

<!-- gh-comment-id:620510142 --> @amaury1093 commented on GitHub (Apr 28, 2020): 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.
Author
Owner

@ririko5834 commented on GitHub (May 27, 2023):

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

<!-- gh-comment-id:1565353416 --> @ririko5834 commented on GitHub (May 27, 2023): 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
Author
Owner

@ririko5834 commented on GitHub (May 27, 2023):

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.

<!-- gh-comment-id:1565353757 --> @ririko5834 commented on GitHub (May 27, 2023): > 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.
Author
Owner

@gerynugrh commented on GitHub (Sep 11, 2024):

Hi @willbrowningme what do you think about this feature request? If you are okay with adding this feature I could spent some time to work on it.

<!-- gh-comment-id:2342806465 --> @gerynugrh commented on GitHub (Sep 11, 2024): Hi @willbrowningme what do you think about this feature request? If you are okay with adding this feature I could spent some time to work on it.
Author
Owner

@willbrowningme commented on GitHub (Sep 11, 2024):

@gerynugrh It's still on the roadmap here I just haven't had time to work on it yet.

I think using Laravel's HTTP Client should really help with it.

There is also Spatie's webhook server package - https://github.com/spatie/laravel-webhook-server

<!-- gh-comment-id:2343009031 --> @willbrowningme commented on GitHub (Sep 11, 2024): @gerynugrh It's still on the roadmap [here](https://github.com/orgs/anonaddy/projects/1/views/1?pane=issue&itemId=63479184) I just haven't had time to work on it yet. I think using Laravel's [HTTP Client](https://laravel.com/docs/11.x/http-client#main-content) should really help with it. There is also Spatie's webhook server package - https://github.com/spatie/laravel-webhook-server
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/anonaddy#86
No description provided.