?

Log in

No account? Create an account
how I get distracted, a case study: I'm about to leave to go take a… - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[May. 2nd, 2000|02:19 pm]
Brad Fitzpatrick
[Tags|, ]

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 ... )
LinkReply

Comments:
[User Picture]From: d4b
2000-05-02 03:09 pm (UTC)

Stepping back a second...

Um... Brad? Since you have already authenticated
that a given user has a given email address (and
could further authenticate that it is still valid
by using a unique code in the Subject line),
couldn't you simply have the notification email
come From a specific respond@LiveJournal.com
address which, when replied to, would
authenticate the user, idenitify the correct
target entry which is being responded to, and
post the email's body as the response? No MIME,
no HTML forms, no nothing... Just pure, emotive,
plain text email. :-)
(Reply) (Thread)
[User Picture]From: bradfitz
2000-05-02 03:14 pm (UTC)

Re: Stepping back a second...

Could. Have done similiar things in the past.

But that requires messing with a bunch of mail stuff, and I'm thinking of changing my MTA around on this machine, and even relocating livejournal to a different server. The less system components interacting at once, the easier it is to move about later. Plus, your proposal would require another table to be added that lined up temporary unique IDs to users, with an expiration date, and then a cron job to clean/purge those periodically. That's more work.

Plus, I figured out the MIME stuff already... it was pretty easy.

I'm not trying to make this into a huge project, just a quick hack that sometimes helps. At the worst, it works just like it did before, for users without HTML email. (few these days, with everybody on Hotmail and stuff....)
(Reply) (Parent) (Thread)
[User Picture]From: d4b
2000-05-02 03:36 pm (UTC)

Re: Stepping back a second...

> users without HTML email. (few these days,
> with everybody on Hotmail and stuff....)

*Everyone*?? Without starting a religious war,
I'll just say I disagree with your comments. :-)

> relocating livejournal to a different server...

Might I suggest ours? :-) http://music.note.com
(Reply) (Parent) (Thread)
[User Picture]From: bradfitz
2000-05-02 03:40 pm (UTC)

Re: Stepping back a second...

Well, more than when I started and it was all BBSes and shell accounts on Unixes systems and elm.

More people use Hotmail nowadays than elm(1) or mail(1), no?
(Reply) (Parent) (Thread)
[User Picture]From: d4b
2000-05-02 03:39 pm (UTC)

Re: Stepping back a second...

I meant to precede that last comment with a
sympathetic, "I understand."
(Reply) (Parent) (Thread)