mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #201] Raw or parsed Data in Webhook calls #131
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @designerno1 on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/201
Nice work.
A nice to have would be to have a option to send the raw data and or parsed data to the webhook
Including the attatchments
@axllent commented on GitHub (Oct 31, 2023):
Thanks, I'm glad you like it :) Can you please explain what you are wanting to achieve with this additional data in the webhook calls exactly, as I think think this is much more of an API-related question? I'm reluctant to add anything is there that will drastically increase the network traffic.
Currently the webhook sends the message summary which includes the database ID of the new message. All the data you are after can then be fetched via the API once you have the message ID, for example:
Different people will have different requirements so this way you can just fetch what you need instead.
@designerno1 commented on GitHub (Oct 31, 2023):
Hi,
My Plan was to not do the api call to the server, instead trigger a symfony message with the webhook call and have all the raw data there to manipulate the message and resend it over a real smtp
@designerno1 commented on GitHub (Oct 31, 2023):
Also a cool optional feature would be to specify the webhook per user
@axllent commented on GitHub (Nov 1, 2023):
Hi @designerno1. Whilst I love getting feedback and suggestions, I am going to politely decline this request. There are a few reasons for this:
You are far better off building your system to poll the Mailpit API every minute or so, search/filter for new messages, and then do what you like with them. This will allow you to filter by whatever you like too (your last comment), and will also allow for some degree of network failure.
I hope this makes sense to you and that you can understand my reasoning here?