enteirah: (Default)
[personal profile] enteirah
Well, the [livejournal.com profile] watershipgroup RSS feed for pulling in the full group messages is now running fully automated. Everything is running smoothly with it now, although obviously I am still keeping an eye on it for any bugs which will inevitably crop up. I'm actually quite proud of the PHP script for it, which runs as follows:-

1) An account is signed up to the group with individual message delivery in plain text turned on.
2) The email account it uses needs IMAP access (theoretically Pop3 should work too, but is untested), and should only be used for the group.
3) The script is configured with the details for the email account, as well as the ID for the latest message according to Yahoo.
4) When called, the script accesses the email account, and grabs any unread messages.
5) For every new message, it also opens a file containing the current message ID and increments it by one, before saving it again. This is because Yahoo don't include the unique message IDs from their web interface in the emails for some stupid reason. =:\
6) The from and date fields are constructed from the headers.
7) The Yahoo advertising junk is removed from the bottom of the body (=:P), and all email addresses are replaced with somebody@... for privacy.
8) The whole thing is output to an RSS file.

Yay, it's my first vaguely useful script. =:) Anyone who's still watching the [livejournal.com profile] wd_group (which as far as I can tell is only you [livejournal.com profile] loganberrybunny =;)) is advised to switch over to the [livejournal.com profile] watershipgroup feed. It looks safe now. =:D

(Edit: Oh, and if anyone wants to take a look at the source for it, just ask and I'll email it to you. =:))

Date: 2004-06-01 05:41 am (UTC)
From: [identity profile] huskyteer.livejournal.com
Nice job!

Date: 2004-06-01 06:03 am (UTC)
From: [identity profile] loganberrybunny.livejournal.com
Well, I've "dewatched" the [livejournal.com profile] wd_group feed now, since your version is so much more useful. =:)

Yahoo don't include the unique message IDs from their web interface in the emails for some stupid reason. =:\


I have no idea why they don't do that. It would be no work at all for them, and would be extremely useful, seeing as quite often people (well, me) refer to "such-and-such in msg no. hrair". =;)

It seems to work very well - thanks! =:)

The only minor complaint would be that there's no indication as to who's written a particular post (unless, like "The Captain" just today, they sign them within the body of the post)... but I suppose that encourages people to go to the Group proper to find out! =:P

Date: 2004-06-02 03:02 am (UTC)
From: [identity profile] eliki.livejournal.com
Oooh, speaking of sauce code, I used that chunk of Javascript you sent me, to make the email address on the site less accessible to spambotties. And it worked just fine. Thanks! :) Time will tell if it stops the spamheads but paws crossed. :)

April 2017

S M T W T F S
      1
2345678
9101112131415
1617 1819202122
23242526272829
30      

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 15th, 2026 07:02 am
Powered by Dreamwidth Studios