Piers Harding

NAME

DJabberd::Delivery::OfflineStorage - Basic OfflineStorage (old style) for DJabberd

DESCRIPTION

So you want offline storage - well add this to djabberd.conf:

    <VHost mydomain.com>

        [...]
        <Plugin DJabberd::Delivery::OfflineStorage::InMemoryOnly>
             Types Message
         </Plugin>
    </VHost>

 For InMemoryOnly based storage, and:

    <VHost mydomain.com>

        [...]
        <Plugin DJabberd::Delivery::OfflineStorage::SQLite>
           Database offline.sqlite
           Types Message
        </Plugin>
    </VHost>
 For SQLite based storage.

Parameter Database specifies the sqlite database file to use, and Types is a list of Stanza types that will be collected. This should really only be Message - think really hard before you ad IQ to the list.

Also - it is extremely IMPORTANT as Edward Rudd pointed out - this Plugin MUST be the last in the delivery chain, as it assumes that if S2S and Local haven't dealt with it, then the JID in question is offline.

AUTHOR

Piers Harding, piers@cpan.org.

COPYRIGHT & LICENSE

Original work Copyright 2006 Alexander Karelas, Martin Atkins, Brad Fitzpatrick and Aleksandar Milanov. All rights reserved. Copyright 2007 Piers Harding.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.