Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

how I get distracted, a case study: I'm about to leave to go take a shower, but then I get an email. Damnit .. another one of these LiveJournal "Reply to your post..." messages. These are starting to constitute the majority of my mail. And I really hate having to click on the link to fire up my browser to reply, or pressing "V" in pine and navigating through lynx. Soo... I decided I need to make the server send mail that includes a form inside the email you can fill out.... but what about all the people that can have text-only in their mail? Simple --- I just send the message as multi-part/mixed or multi-part/alternative. Okay, do some research on that. Oh, look, there's a MIME::Lite perl module on CPAN to do this.... kinda. It doesn't quite work how I'd expect. Okay, fuck it, I'll do it myself... let's copy Outlook Express's headers... they work well. Fire up pine, press "H" for full headers mode.... damnit Pine (or UW's IMAP server), the message has already been parsed and fragmented, I can't see the full text of the message body, so I can't tell the Content-Disposition and Content-Type on the individual parts. (but I do see they're using multi-part/alternative... remember that). Okay, let's just sniff my windows ethernet card from linux and see what's OE is sending to my SMTP server.... hm, maybe I should download a new version of Ethereal. Oh damn, this version's configure script is bitching about my out-of-sync glib.h headers and library version. Gotta go fix that. Okay, fixed. Ethereal compiling now. (Shit, wasn't I going to go take a shower?) See? This happens all the time. This is why I can't sleep at night. This is why I always have 30 xterms open. Grrrr. But if anybody out there is a MIME expert, let me know. (and no Eli, I don't want to see you put white and black face paint all over, go mute and start pretending you're touching an invisible wall ... )
Tags: perl, tech

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Why, hello...

    Long time no see. How's my baby doing?

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

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