Skip to content

Instantly share code, notes, and snippets.

@wytten
Created September 13, 2017 13:57
Show Gist options
  • Save wytten/9b20ab2f06e72c0736f5fe8928c78015 to your computer and use it in GitHub Desktop.
Save wytten/9b20ab2f06e72c0736f5fe8928c78015 to your computer and use it in GitHub Desktop.
Check for new mail once daily and mail summary
/usr/bin/find /var/mail/yourself -mtime -1 -size +600c | /bin/egrep '.*' > /dev/null && (from | grep -v 'FOLDER INTERNAL DATA' | /usr/bin/mail -s Summary yourself@gmail.com)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment