#!/bin/sh yesterday=`date -d 'yesterday' --iso-8601` 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