[Mailman-Developers] information regarding request.db

Barry A. Warsaw barry@python.org
Mon, 7 Oct 2002 18:06:56 -0400


>>>>> "AY" == Asher Yanich <ayanic01@cs.fiu.edu> writes:

    AY> I am looking to write a tool to auto-flush held messages and I
    AY> was wondering what interface I could use to get into
    AY> request.db.  I would like to be able to intelligently look at
    AY> the requests that are being held and if they havent been
    AY> moderated through within a certain period of time, just clear
    AY> them out.

requests.db is a marshalled Python dictionary.

    AY> So, I tried DB_File with perl and had no luck.

What's Perl <wink>.

See this page for details:

http://www.python.org/doc/current/lib/module-marshal.html

or look at bin/dumpdb in the Mailman source code.

[Aside: request.db really ought to be a pickle not a marshal.  Oh
well.]

-Barry