SELECT * FROM events WHERE contact_id = XXX;
where XXX is the contact id, you can find it in dbeditor++ in the list of Contacts
1. Install the DbEditorPP plugin
2. Right-click on contact -> Open in Database Editor -> See contact ID (dec value)
In my case, it is 447
3. Open db in SQLite Browser (always use a copy, do not experiment on your real db)
4. Switch to Execute SQL
5. Execute
SELECT * FROM events WHERE contact_id = 447; command
6. See SQL Log
-- EXECUTING ALL IN 'SQL 1'
--
-- At line 1:
SELECT * FROM events WHERE contact_id = 447;
-- Result: 325 rows returned in 149ms
325 events in history for this contact
7. See timestamp for event 1 (1 is the oldest event in contact history)
1634160132
8. Convert this UNIX timestamp to date with
https://www.unixtimestamp.comGMT Wed Oct 13 2021 21:22:12 GMT+0000
Result: the history of conversations with this contact in my database starts with Oct 13 2021 21:22:12 GMT
This is in complete agreement with what the history viewer plugin History++ shows me in Miranda (Oct 13 21:22:12 GMT = Oct 14 0:22:12 GMT+3)
This way you will find out if there is a history older than 30 days in the database or not.