I have modified the code to allow selection by number of days as well.
Please find a patch attached which does the same.
Also attached is screen shot showing preference. (Only English is done - someone needs to do it for other languages)
Here is what it does:
Increases the SQL database search days from 2 (current) to 7 (so new maximum limit is now 7)
If number of days is 0 (zero) than it just checks based on number of lines (just like current behaviour without this patch)
If number of days is greater than 0 then the rule shows history for that many days. (i.e. 24hrs*N days and newer)
If “Consider days above start at midnight” then days is counted based on midnight.
Lets say current time is 3PM
Lets say number of days is 1
if midnight option is NOT checked then logs are shown from previous day 3PM to today 3PM. (i.e. last 24hrs)
if midnight option is checked then logs are shown only from 12AM to 3PM. (i.e. only today’s logs)
PS: For persistent rooms, you need to restart Openfire for any changes to take effect.
Note: this patch also fixes a bug in packetfilter plugin related to destJID option. (see patch)