(no subject)
Jun. 1st, 2004 09:47 amWell, the
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
wd_group (which as far as I can tell is only you
loganberrybunny =;)) is advised to switch over to the
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. =:))
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
(Edit: Oh, and if anyone wants to take a look at the source for it, just ask and I'll email it to you. =:))