If you get an attachment that contains “begin 644 …. end” you need sharutils uudecode to open it.

Written by James McDonald

May 27, 2012

My wife received a file named Voucher.pdf from a motel we were going to stay at. When she attempted to view it her email client on her iPhone failed to open it. She forwarded it to me and I got the same result on my Samsung Galaxy S2 (yes we are a Apple/Android divided household).

I downloaded the file onto my laptop and opened it in vi and found that it had what I call gobbledeegook as follows:

So apparently the PDF file had been uuencoded and attached straight to the email client but without the proper headers and such so as to inform the email client that it needs to be decoded back into PDF format before it could be opened.

So after downloading voucher.pdf I simply installed sharutils (sudo yum install sharutils on Redhat, sudo apt-get install sharutils on Debian) and then ran:

uudecode voucher.pdf -o test.pdf

and I now had a properly formatted pdf file…

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...