The idiot eel keeps whining about someone writing something
useful for the remailer community, so here's my first attempt
at Python programming. It removes all traces of eelbash from your
mlist and rlist type .txt files. :-)
It's for Ubuntu (Debian) based mixmaster installs that use
cron.daily to update /ver/lib/mixmaster/stats, but it could easily
be modified to handle any install by modifying the 'filelist ='
line I think.
I saved the script as /usr/bin/mixmaster-fix-stats, chmod it 755,
then modified /etc/cron.daily/mixmaster as below. Works fine
that way on my machine, but feel free to tweak as needed.
---cut---
#! /usr/bin/python
import glob
filelist = glob.glob("/var/lib/mixmaster/stats/*.txt")
for file in filelist:
infile = open(file, 'r')
statsfile = infile.readlines()
infile.close()
outfile = open(file, 'w')
for line in statsfile:
if not "eelbash" in line:
outfile.write(line)
outfile.close()
---cut---
And here's an example of a modified /etc/cron.daily/mixmaster file:
---cut---
#!/bin/sh
# Mixmaster update cron job. To be run daily.
# Get configuration
/etc/mixmaster/network.conf
if [ "$NETWORK" = "permanent" ] && [ -x /usr/bin/mixmaster-update ]; then
su mixmaster -c "/usr/bin/mixmaster-update";
su mixmaster -c "/usr/bin/mixmaster-fix-stats";
fi
---cut---
Improvements to the script would be removing the idiot eel's keys
from both keyrings too. If anyone wants to give that a crack go for
it. I have no clue how to open or edit a PGP keyring in Python but I
could probably tackle the mixmaster keys if nobody else wants to.