Thufir,
Am 05/11/12 10:37, schrieb Thufir:
Every once in a while I get attachments which show as:
------------=_1336506446-4987-16
Content-Type: audio/mp3; name="voice_message_2012-5-8_15-47-26.mp3"
Content-Disposition: attachment;
filename="voice_message_2012-5-8_15-47-26.mp3"
Content-Transfer-Encoding: base64
/+MYxAAAAANIAAAAAAgwwIBQN/sCB/m////+T///73U////9tG////FG87sf
/////8UExd7uIf/////igEY7iDCgmdUQDJbK/+MYxDsAAANIAAAAAOZOsbDM
...
AAAAAKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqq
qqqqqqqqqqqqqqqqqqqqqqqq
------------=_1336506446-4987-16--
and I was just wondering how to copy/paste or turn that into, in this
case, an mp3.
That "ascii garbage" is base64 encoded content. You'll want
to decode that.
Copy all of that "garbage" (in your case, starting from the line with
"/+MYx"… up to all of those "qqq") into a text file named, in this case,
voice_message_2012-5-8_15-47-26.mp3.b64.
Then, in a terminal, run:
$ base64 -d voice_message_2012-5-8_15-47-26.mp3.b64 >
voice_message_2012-5-8_15-47-26.mp3
voice_message_2012-5-8_15-47-26.mp3 will then be your MP3 file.
PS: What does this have to do with Ubuntu?
Alexander
--
☄ Google+ ↣ http://plus.skwar.me ☄
☛ Lifestream (Twitter, …) ↣ http://sup.skwar.me ☛
⚰ Twitter: @alexs77 ↣ http://twitter.com/alexs77 ⚰
☞ Chat (Jabber/Google Talk) ↣ a.skwar@gmail.com ☞
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users