05 Feb 2008 06:56:04 UTC
- Distribution: DJabberd-Delivery-OfflineStorage
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (134 / 6 / 15)
- KwaliteeBus factor: 0
- 93.75% Coverage
- License: unknown
- Activity24 month
- Download (4.46KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPIERS Piers Harding
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, email@example.com.
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.
Module Install Instructions
To install DJabberd::Delivery::OfflineStorage, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install DJabberd::Delivery::OfflineStorage
For more information on module installation, please visit the detailed CPAN module installation guide.