Force new users to set the toaddr before using. - sfeed_sendmail - sfeed to sendmail command
(HTM) git clone git://r-36.net/sfeed_sendmail
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit aff1f467356385a9d1946e9a238b0b23f32c40b9
(DIR) parent 70fdf6f6f7ca681e59b50921e4ce525a676f016d
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 17 Oct 2025 13:32:18 +0200
Force new users to set the toaddr before using.
Diffstat:
M sfeed-run | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/sfeed-run b/sfeed-run
@@ -3,7 +3,12 @@
export PATH="$HOME/bin:$PATH"
sfeedrc="$HOME/.sfeed/sfeedrc"
-toaddr="rss@r-36.net"
+toaddr=""
+if [ -z "$toaddr" ];
+then
+ printf "Please set the toaddr.\n" >&2
+ exit 1
+fi
sfeed_update "${sfeedrc}" 2>&1 | grep FAIL
eval $(grep ^sfeedpath= "${sfeedrc}")