# HG changeset patch # User Kim Alvefur # Date 1454426892 -3600 # Node ID 7c61ab512d0b680e21627f3dd390a21dfa74a96c # Parent 459e1878d23cf3dcbf88a19f91933b604a059652 mod_storage_xmlarchive: Return earlier if attempting to delete messages older than the oldest existing diff -r 459e1878d23c -r 7c61ab512d0b mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Feb 02 16:27:38 2016 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Tue Feb 02 16:28:12 2016 +0100 @@ -187,6 +187,7 @@ if not err then return true end -- already empty return dates, err; end + if dates[1] > before then return true; end -- Nothing to delete local remaining_dates = {}; for d = 1, #dates do if dates[d] >= before then