sfeed_sendmail

sfeed to sendmail command
git clone git://r-36.net/sfeed_sendmail
Log | Files | Refs | LICENSE

commit b8c4db268dba3d7efd71c0e773be6ff2c1a27a16
parent 6ec539cb4fb9fceb11425d96fa078dc3ef5554af
Author: Christoph Lohmann <20h@r-36.net>
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(-)

diff --git a/sfeed_sendmail b/sfeed_sendmail @@ -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" @@ -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}"