mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #621] [MERGED] Make email publishing work, when access-control is enabled #1355
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1355
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?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/621
Author: @tamcore
Created: 2/19/2023
Status: ✅ Merged
Merged: 2/20/2023
Merged by: @binwiederhier
Base:
main← Head:feature/email-with-access-control📝 Commits (1)
e892b99add support to pass access-token for e-mail publishing📊 Changes
3 files changed (+40 additions, -0 deletions)
View changed files
📝
docs/publish.md(+5 -0)📝
server/smtp_server.go(+14 -0)📝
server/smtp_server_test.go(+21 -0)📄 Description
This will fix #420, by allowing emails in the format
${prefix}-${topic}+${token}@${host}, so the user can pass a token with write-permissions to the defined topic.A container image to test it with is available via
ghcr.io/tamcore/ntfy:v2.0.1@sha256:e6616f3531f9960da1f0ea918feb73faa8ffa0794a58d0d606eb131f911a7650Tests
Without token
With invalid token
With valid token
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.