Jun. 1st, 2004

enteirah: (Default)
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. =:))

April 2017

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

Page Summary

Style Credit

Expand Cut Tags

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