Mon, 29 Nov 2004
…or python 2.2 and a lot of tickling.
I checked out the latest arch-pqm from Colin Walter’s repository and proceeded to try and get a PQM going on my server. I needed to get this to work without any .forward or .procmailrc magic so I started by writing a little tool to fetch emails from a POP3 account and write them to files.
Then I had to get arch-pqm working. Now arch-pqm claims to require python2.3 so I set about trying to persuade it that 2.2 isn’t so bad and maybe it should get on with it. The easiest bit was the argument parser had a broken foo in (bar) test which I stomped on.
But then came the joy of os.walk() which isn’t in python2.2 so a little hack-fest later and I created os_walk() which behaves pretty much the same and works in python2.2.
def os_walk(path,topdown=True):
l = []
def fooble(l,dir,ents):
ds = []
fs = []
for e in ents:
if os.path.isdir("%s/%s" % (dir,e)):
ds.append(e)
else:
fs.append(e)
if topdown:
l.append((dir,ds,fs))
else:
l.insert(0,(dir,ds,fs))
os.path.walk(path,fooble,l)
return l
Perhaps that’ll be useful to anyone else trying to get arch-pqm working on a woody box.
Now to submit merge requests to it. \o/
…take one down, squash it with work. 104 RC bugs on the wall.
This weekend just gone saw a small BSP in the UK along with various parties around the wall. This meant that a reasonably large number of us gathered at Steve McIntyre’s house in Cambridge for beer and bug squashing. There was a lot of new faces at the party and I for one enjoyed meeting new people immensely. Shouts go out to Paul, Steve, Eddy, Tim and everyone else I met for the first time (those names stick in the mind).
The party also provided an opportunity for more people to meet the cheap imitation and also Sideshow bob.
People also got to see more of Nattie, who has been to a couple of the summer Debian-UK BBQs, which was good. And I do hope we haven’t scared off the new people. I actually got a pile of Debian stuff done, which was nice because I have been letting so many people down recently with respect to Debian stuff.
All in all, a good weekend and I look forward to getting around to a bit more Debian stuff as and when I get time. Just keep bugging me :-)