[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-users
Subject:    Re: [Mailman-Users] Format of database?
From:       "Barry A. Warsaw" <bwarsaw () cnri ! reston ! va ! us>
Date:       1999-03-29 3:26:40
[Download RAW message or body]

>>>>> "JR" == John Reekie <johnr@eecs.berkeley.edu> writes:

    JR> Hi folks, what format are the configuration databases
    JR> for mailman in? Is it dbm?

    JR> Also, is there any documentation on the structure of
    JR> the db? I need to modify the db from another program.

Its raw, on-disk format is a Python marshal.  You can essentially do
the following to get a the database:

import marshal
fp = open('/home/mailman/lists/mylist/config.db')
dict = marshal.load(fp)
fp.close()

-Barry

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic