Hi, I've made a (somewhat radical) change to your code and I'm posting it here in case you want to merge it...
The ideia is to try to make absolute paths relative (only paths inside miranda folder). It works like that: when it writes a string to DB, it compares the begining of the string with Miranda path. If matches, it removes the begining of the string and add a mark to it. When someone asks for this string, it adds the current path to the begining.
I've been using it for some time and I didn't see any collateral effects yet.
The code is at:
http://geocities.yahoo.com.br/ricard...a/db3xSsrc.zip
PS: To make this change I used VC 6, so I had to port the project file. I hope I didn't messed up nothing :P