Skip to content

Instantly share code, notes, and snippets.

@paulwellnerbou
Last active July 2, 2016 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulwellnerbou/98338bbd49094d798cf5339bad7426bc to your computer and use it in GitHub Desktop.
Save paulwellnerbou/98338bbd49094d798cf5339bad7426bc to your computer and use it in GitHub Desktop.
Decode encoded email HTML with using php-cli
#!/bin/sh
encoded=$1
decoded="${1}.decoded.html"
php -r 'echo quoted_printable_decode(file_get_contents("'$encoded'"));' > $decoded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment