DJabberd::Delivery::OfflineStorage - Basic OfflineStorage (old style) for DJabberd
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.
Piers Harding, firstname.lastname@example.org.
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.