[Spambayes] What is the current version, and how do I find out the version I'm using?

Skip Montanaro skip at pobox.com
Mon Jul 28 14:23:59 EDT 2003


    David> I'm curious, how do I find out which version of SpamBayes I have
    David> installed, and what the current version is?

Well, that depends. ;-)  From the Python prompt you should be able to
execute:

    >>> from spambayes import Version

then explore the contents of Version.versions:

    >>> Version.versions.keys()
    ['Date', 'Full Description', 'Version', 'Apps', 'Description']
    >>> Version.versions["Apps"].keys()
    ['SMTP Proxy', 'POP3 Proxy', 'IMAP Filter', 'Outlook', 'Lotus Notes Filter', 'Hammie']
    >>> Version.versions["Apps"]["POP3 Proxy"]
    {'Description': 'SpamBayes POP3 Proxy Beta1', 'InterfaceDescription': 'SpamBayes POP3 Proxy Web Interface Alpha2', 'Full Description': '%(Description)s, version %(Version)s (%(Date)s),\nusing %(InterfaceDescription)s, version %(InterfaceVersion)s', 'Version': 0.10000000000000001, 'Date': 'May 2003', 'InterfaceVersion': 0.02}

Different apps which use Spambayes will import what they need in different
ways.  Mark just added code to the Outlook plugin to allow the user to check
for newer versions.  You'll need to check out from CVS to get at that
functionality at the moment.

Skip



More information about the Spambayes mailing list