Skip to content

Instantly share code, notes, and snippets.

@Thann
Created November 6, 2016 20:19
Show Gist options
  • Save Thann/2da26c35bab922dfd09bc29637d0bbed to your computer and use it in GitHub Desktop.
Save Thann/2da26c35bab922dfd09bc29637d0bbed to your computer and use it in GitHub Desktop.
Email Verify
# Verify an email with DKIM
# Usage: ev https://wikileaks.org/podesta-emails/emailid/5205
address=$1
if [ -z $address ] ; then
echo "must pass address!";
exit 1
fi
# If from wikileaks, use proper URL
if [[ $address == *'wikileaks.org'* ]] ; then
address=${address//emailid/get}
fi
# Fetch and verify
curl $address | opendkim -t-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment