mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1117] ntfy filtering for mail over http #789
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#789
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 @lutzky on GitHub (May 24, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1117
💡 Idea
My home server (and workstation) occasionally send emails, e.g. on cron job failures. https://docs.ntfy.sh/examples/#cronjobs shows how to do this manually for cron jobs (and doesn't forward stdout). Another way of doing it is using cron's (or anacron's) built-in
MAILTOcomponent, and creating a.forwardfile with contents such as:That first line works nicely; e.g. for a sudo password failure, you get a notification that looks like this:
However, that second one gets output that looks like this:
Now, in my case, mydomain.com runs on CloudFlare, and it's fairly easy to expose HTTP that way, even when opening ports is impossible or undesirable. This doesn't work for email, so I can't send email to my-person-cron@ntfy.mydomain.com.
What would be really nice is if I could supply a header like
X-Filter-this-as-though-it-is-email: truefor cases like this. Essentially, this should act likesmtpSession.Data- extracting the subject, determining if it's HTML, managing attachments, etc.💻 Target components - ntfy server