Diff

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1831:004d3bfc05ea

mod_storage_xmlarchive: Expose method for getting a list of dates which do have messages
author Kim Alvefur <zash@zash.se>
date Mon, 07 Sep 2015 16:26:52 +0200
parent 1819:1b08597b5e6f
child 1969:e63dba236a2a
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sat Sep 05 23:08:40 2015 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Sep 07 16:26:52 2015 +0200
@@ -218,6 +218,10 @@
 	return true;
 end
 
+function archive:dates(username)
+	return dm.list_load(username, module.host, self.store);
+end
+
 local provider = {};
 function provider:open(store, typ)
 	if typ ~= "archive" then return nil, "unsupported-store"; end