Evan Martin (evan) wrote in evan_tech,
Evan Martin

hate computers so much

MIME question:

Students mailed me their homework as attachments. My current strategy is something like “munpack /path/to/maildir/cur/*” to extract all the attachments.

But: Smalltalk outputs its code with CR (no LF) ending lines. Some of the extracted files are lacking any CRs or LFs. Weirder, mutt (in its inline attachment viewer) shows the CRs (as “^M”).
It seems to only happen for attachments that are text/plain, encoding base64, but not for all of them (...?!).

Which piece do I blame?

I can manually export them one by one, but how many will that be?
for i in *; do grep '^M' $i >/dev/null || echo $i; done | wc -l

Tags: fourth wall, grumpy

  • megaupload captcha

    Someone make a Javascript-based captcha cracker for megaupload. It's strange to see those captchas again because I idly myself wrote a…

  • zombie ghosd

    I was tickled to discover another IBM developerworks article on one of my abandoned hacks and that both it and its predecessor have been translated…

  • gat, a git clone in haskell

    I've been pretty busy with work lately, so I may as well dump this on the internet before it gets too dusty. Though I think I understand Git decently…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.