Mailinglist Archive: opensuse (1750 mails)

< Previous Next >
Re: [opensuse] howto un-encode files from email text encoding??
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Sat, 11 Oct 2008 14:36:25 +0200 (CEST)
  • Message-id: <alpine.LSU.2.00.0810011316290.26326@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wednesday 2008-10-01 at 00:14 -0500, David C. Rankin wrote:


(I forgot to email this email)

Listmates,

I have had a number of occasions where colleagues have bungled
attachments to
e-mail where I receive the message body and attachment all run-together in the
body of the message. Often times I need to be able to un-encode and save the
encoded spreadsheet, word processing document or photo back to its .doc, .xls
or .jpg native file format. The encodings appear similar to:

------=_NextPart_000_0036_01C91E59.83DAB180
Content-Type: application/msword;
name="PETITION - Original.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="PETITION - Original.doc"

Yes, I know.


Years ago, there was an old uuencode/uudecode script that I recall
using in
DOS, but I don't have anything similar in my Linux tool box yet. I'm sure it is
there, I just don't know what it is called or what it looks like. If somebody
could point me in the right direction, I would appreciate it. Thanks!

There is uudedcode (package sharutils), but that will not help you because the above is not uuencoded. That's mime, I think, with "base64" enconding.

The problem is, I guess, that the email got broken in transit. What I do is to save(copy) the email to a separate mbox folder with just that message, and edit it with an editor (joe or mcedit) till the mail program understands the email correctly. Usually it is a runtogether line.

I got one of those recently, but it was spam, so I didn't try to reconstruct.

[...]

I tried to find that email to test the procedure, but I couldn't find it and then I forgot to email this.

HTH.

- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkjwncwACgkQtTMYHG2NR9XCSACgjM5BMpLqgRh1PlFdqr/iYpQH
zp4AniJci8/sjhSQRAkH6/JSiM30Xx+v
=aslr
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References