NAME DADA::MailingList::Schedules::MLDb


 my $mss = DADA::MailingList::Schedules->new({-list => 'listshortname'});


This module holds methods for manipulating the underlying file format used to save schedule mailings for Beatitude. This module uses the MLDBM module to save complex data structures to disk.

Public Methods


  my $mss = DADA::MailingList::Schedules->new({-list => 'listshortname'});

-List has to be a valid listshortname.


        my $key = $mss->save_record(-key   => $s_key, 
                                                                -mode  => 'append', 
                                                    -data  => \%form_vals);

Saves the hashref, -data into key -key. If key is not present, a new key will be made. Information will be appened to old information if -mode is set to append, old information will be most likely be written over if -mode is set to any other value.


 $record = $mss->get_record($key);

Returns a hashref saved in $key


 my @keys = $mss->record_keys;
Returns all records keys.



removes the record, $key.


 my $new_key = $mss->new_key;

Creates a new key, based on the time();


Copyright (c) 1999-2008 Justin Simoni All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.