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

  • münchen

    On that note: I'm living in Munich for the next week plus a few days. Do I know anyone around here? (PS: The LJ → PubSubHubbub → Reader…

  • your vcs sucks

    I've been hacking on some Haskell stuff lately that's all managed in darcs and it's reminded me of an observation I made over two years ago now (see…

  • deb/rpm diffing tools

    Dear Linux hackers, Chrome tends to push minor updates (often security) pretty frequently. We'd like to operate as a good member of the Linux…

  • 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.