-
-
Save Thann/2da26c35bab922dfd09bc29637d0bbed to your computer and use it in GitHub Desktop.
Email Verify
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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