N.B.: this post assumes that you have a basic working knowledge of Linux, FreeBSD, or some other Unix or Unix-like system. It assumes that you can install packages (vpim) on your system, and it also assumes that you know HOW to install packages (or compile software from distributed source code). It also assumes that you have already have exported the Memo that you wrote on your Android phone into a .vnt format file. It assumes that you are staring at that file, debating whether or not to just do a search and replace on those =0D=0A characters, and wondering why the Memo app couldn't just export a text file.
The .vnt file looks like this:
[doug@airship-pirate work]$ cat 2012-11-09.21.49.18.vntSo, the content is in there, "Test Message Here", but it's a bit hard to work with. You have a few options for translating this. The most robust way is to use a vNote reader, but I have yet to find one, or have reason to write one. So we'll use a vCard reader instead. The package "vpim" provides a few utilities, including vcf-dump, which we'll exploit for our own nefarious purposes in just a moment. First, though, we have to tweak that VNOTE into a VCARD. If you don't do this step, vcf-dump gets all cranky.
[doug@airship-pirate work]$ sed -e 's/VNOTE/VCARD/' 2012-11-09.21.49.18.vnt > 2012-11-09.21.49.18.vcfEasy enough.
[doug@airship-pirate work]$ head -1 2012-11-09.21.49.18.vcf
Next, run it through vcf-dump:
[doug@airship-pirate work]$ vcf-dump 2012-11-09.21.49.18.vcfGreat. vcf-dump handled translating that quoted-printable string, and presumably would handle other encodings as well (i.e. base64), without too much effort on our part.
Finally, the last step. I'm going to grab that "Body" line, cut out the portion between the quotes, and then translate those CRLFs ("\r\n") into actual newlines.
[doug@airship-pirate work]$ vcf-dump 2012-11-09.21.49.18.vcf | fgrep "Body=" | cut -f 2 -d '"' | sed -e 's/\\r\\n/\n/g'Voilà.
I hope that helps. Please remember to back up any files prior to attempting to translate them, since one botched '>' can ruin your day.