feat: add mail id and url in webhook #443
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
#429
PR Type
Enhancement, Documentation
Description
FRONTEND_URL
configuration.Changes walkthrough 📝
8 files
Index.vue
Add mail ID query functionality in the mailbox view
frontend/src/views/Index.vue
useRoute
to handle route changes.mailIdQuery
andshowMailIdQuery
for querying mails by ID.fetchMailData
to handle mail ID queries.mail_webhook_settings.ts
Include mail ID and URL in webhook payload
worker/src/admin_api/mail_webhook_settings.ts
common.ts
Enhance webhook payload with mail ID and URL
worker/src/common.ts
triggerWebhook
to fetch mail ID based on address and messageID.
index.ts
Pass message ID to `triggerWebhook` function
worker/src/email/index.ts
triggerWebhook
call to includemessage_id
.index.ts
Add API endpoint to fetch mail by ID
worker/src/mails_api/index.ts
webhook_settings.ts
Enhance webhook settings with mail ID and URL
worker/src/mails_api/webhook_settings.ts
index.ts
Extend `WebhookMail` type with ID and URL
worker/src/models/index.ts
id
andurl
fields toWebhookMail
type.WebhookSettings
body template to includeid
andurl
.types.d.ts
Add `FRONTEND_URL` to environment bindings
worker/src/types.d.ts
FRONTEND_URL
toBindings
type.2 files
cli.md
Document `FRONTEND_URL` configuration in CLI docs
vitepress-docs/docs/en/cli.md
FRONTEND_URL
configuration.worker.md
Document `FRONTEND_URL` configuration in CLI docs (Chinese)
vitepress-docs/docs/zh/guide/cli/worker.md
FRONTEND_URL
configuration in Chinese.1 files
wrangler.toml.template
Add `FRONTEND_URL` to wrangler template
worker/wrangler.toml.template
FRONTEND_URL
configuration.