get_file_name($self, $user, $element)

Get the filename that should hold information for this combination of $user and $element. The variable are escaped in order to prevent problem with various char, like "/".

set_config_directory($self, $val)

Set the directory that will be used a base of the spool directory. It will be created if it doesn't exist.

finalize($self)

Check that plugin was correctly initialized.

load_privatestorage($self, $user, $element)

Load the element $element for $user from memory.

store_privatestorage($self, $user, $element, $content)

Store $content for $element and $user in memory.

NAME

DJabberd::Plugin::PrivateStorage::SpoolDirectory - implement private storage, stored in a spool directory

SYNOPSIS

<Plugin DJabberd::Plugin::PrivateStorage::SpoolDirectory>
    Directory "/var/spool/djabberd/private_storage/"
</Plugin>

DESCRIPTION

This plugin is derived from DJabberd::Plugin::PrivateStorage. It implement a spool directory storage, similar to the one used by jabberd, or postfix ( for the mail ). The filename is derived from username and the namespace used. Directory will be autocreated if it doesn't exist.

COPYRIGHT

This module is Copyright (c) 2006 Michael Scherer All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

WARRANTY

This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.

AUTHORS

Michael Scherer <misc@zarb.org>