YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
898 stars 39 forks source link

questions: is there plan to provide a #87

Open a-detiste opened 1 year ago

a-detiste commented 1 year ago

is there plan to provide a /usr/sbin/sendmail CLI interface, to enable use of mailrise without a daemon ?

https://en.wikipedia.org/wiki/Message_submission_agent

YoRyan commented 1 year ago

No plans at the moment, but that's an interesting idea. It's just nice to be able to piggyback on existing Unix software that can queue messages for network outages, etc.

a-detiste commented 1 year ago

Here's the adaptator script I use for my project:

#!/bin/sh
from=
subject=
while read -r header rest; do
        case "$header" in
                ""      )       break           ;;
                From:   )       from="$rest"    ;;
                Subject:)       subject="$rest" ;;
        esac
done
exec apprise -vv -t "$subject – $from" -b "$(cat)"