| Date: Sat, 10 Oct 2020 21:26:31 +0200
Add tsvfile name to all e-mails for filtering.
Diffstat:
sfeed_sendmail | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- |
| t@@ -1,12 +1,13 @@
#!/bin/sh
-if [ $# -lt 1 ];
+if [ $# -lt 2 ];
then
- printf "usage: %s to-addr\n" "$(basename "$0")" >&2
+ printf "usage: %s to-addr tsvfile\n" "$(basename "$0")" >&2
exit 1
fi
toaddr="$1"
+tsvfile="$2"
[ -z "$SENDMAILCMD" ] && SENDMAILCMD="sendmail -f"
#[ -z "$SENDMAILCMD" ] && SENDMAILCMD="msmtp -f"
t@@ -57,6 +58,7 @@ do
printf "X-RSS-URL: %s\r\n" "${link}"
printf "X-RSS-Feed: %s\r\n" "${link}"
fi
+ printf "X-RSS-File: %s\r\n" "${tsvfile}"
if [ -n "${id}" ];
then
printf "X-RSS-ID: %s\r\n" "${id}" |