webmention-filer/send-daily-mail.sh

11 lines
270 B
Bash
Raw Permalink Normal View History

2023-08-24 17:58:27 +02:00
#!/bin/sh
yesterday=`date -d "@$(($(date +%s) - 86400))" -I`
2023-08-24 17:58:27 +02:00
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