Out of sheer boredom, I made this piece of deeply redundant python;-
genrss.py
---------
import PyRSS2Gen as RSS
import citlib
#Presets
title="Burnt Pod"
link="http://burnt.podzone.org"
description="Shaynes Development Server"
login=1 #0 for no login
loginuser="admin"
loginpass="************"
def getrss(roomname):
citlib.citsupport.cprintf("100\n")
if login == 1:
server = citlib.server(loginuser,loginpass)
else:
server = citlib.server()
room = server.rooms[roomname]
messages = room.messages
rssitems=[]
for i in messages:
message = messages[i]
headers = message.headers
body = message.body
rssitems.append(RSS.RSSItem(
title=headers['Subject'],
link=link,
description=body))
rss = RSS.RSS2(title=title,link=link,description=description,items=rssitems)
citlib.citsupport.cprintf(rss.to_xml())
citlib.citsupport.cprintf("\n\n000\n")
return 1
And here it is in action;-
guildpc6:/usr/local/citadel/python# telnet localhost 504
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
200 guildpc6 Citadel server ready.
SCRP genrss|getrss|Lobby
100
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"><channel><title>Burnt Pod</title><link>http://burnt.podzone.org</link><description>Shaynes Development Server</description><generator>PyRSS2Gen-0.1.1</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>test</title><link>http://burnt.podzone.org</link><description>& amp;lt;HTML><BODY>
123<br>
123<br>
123<br>
123<br>
123<br>
123<br>
<br>
</BODY></HTML>
</description></item><item><title>Blah</title><link>http://burnt.podzone.org</link><description><HTML><BODY>
<p>If you're a developer, or would just like to tinker with the
latest and greatest version of the Citadel source code currently in
development, you're welcome to use anonymous CVS to download up-to-the-minute
updates of what we've currently got sitting on the source code server.<br>
<br>
Keep in mind that what you download is <em>unrelease
000
Yay!
