webmention-filer/send-daily-mail.sh

10 lines
254 B
Bash
Executable file

#!/bin/sh
yesterday=`date -d 'yesterday' -I`
echo "/tmp/webmention-storage/$yesterday"
if [ -f "/tmp/webmention-storage/$yesterday" ]
then
cat "/tmp/webmention-storage/$yesterday" | mail -r $SENDER -s "Your webmentions for $yesterday" $RECIPIENT
fi