Specify a filename as an exclusion in Immediate Recovery

Ideas for enhancements to the software
Post Reply
Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Specify a filename as an exclusion in Immediate Recovery

Post by Guest10 » Sat May 24, 2008 9:35 pm

I've recently noticed that whenever I attach a picture from the My Documents/My Pictures folder, to an email message, the sandboxed Thunderbird puts a 'thumbs.db' Windows thumbnail file in the sandboxed My Documents/My Pictures/... folder.

Even though I have Immediate Recovery turned-on, and the My Documents folder is set as a Quick Recovery folder, the appearance of this hidden/system file in the sandbox folder does not immediately trigger Immediate Recovery (not that I would necessarily want it to, in this case).

When I quit Thunderbird, Auto Delete runs and the thumbs.db file is found. Quick Recovery checks to see if I want to Recover it. Of course, I do not.

I know how to turn off the creation of all Windows thumbs.db files if I want to. I could also add ".db" to the Ignore list for Immediate Recovery, and that works - though that will ignore all ".db" files whatever the filename.

So, it's just an annoyance, but I was wondering if the ignore list for Immediate Recovery could include a specific filename, such as 'thumbs.db', in addition to ignoring by file type or folder. Or, maybe something isn't working as planned in Sandboxie v3.26.

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sat May 24, 2008 10:13 pm

I dont really have anything to add to this, I just wanted to say nice idea and I second this!
I ran into a similar problem a little while ago with a couple particular files that kept triggering my Immediate Recovery and I couldn't do anything about it other then exclude the extensions those files were using, but then it would've excluded alot of the files that I want to trigger my Immediate Recovery (for example, one of them was an exe file and another was a jpg file).

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun May 25, 2008 9:34 am

Here's a little secret. :) You're not really adding an extension or a folder, in fact you are adding something that will be looked at as either a prefix of a suffix of the file/path that is a candidate for Immediate Recovery.

In other words, if the contents of that list box match either the start of the path, or the end of the path, then the path (or file) are not sent to Immediate Recovery.

So if "Add Type" .db and then edit the configuration and change that to thumbs.db, it should work as you expect.

But I will make a revision in Sandboxie Control, that if you type an entry that already includes a dot (for example thumbs.db), then it will not automatically insert a leading dot. That could be one of those "little known features" like clicking the "Edit" button on an unselected row to invoke the "Add" input box.
tzuk

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Sun May 25, 2008 10:21 am

Well, my hopes were high but it didn't work for me. I used Sandboxie's GUI:
Sandbox Settings | Recovery | Immediate Recovery | "Add Type" button | db | OK | OK

Then Configure | Edit Configuration
Changed "AutoRecoverIgnore=.db" to read "AutoRecoverIgnore=thumbs.db"
File | Save | File | Exit (even tried Reload configuration, on the second try)

Have line " AutoRecoverIgnore=thumbs.db" in configuration and verified that "thumbs.db" shows in the GUI box.

thumbs.db is still not ignored. Quick recovery pops-up. I thought maybe case was important, so I also tried "Thumbs.db" which is how Windows names it - no change.
The file attributes are: archive/hidden/system, if that matters.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun May 25, 2008 10:42 am

You did not mention that you restarted the program that creates the Thumbs.db file (probably Windows Explorer) to refresh the configuration already recorded in it. So maybe there's your problem. I'm saying this because I tested it and for me it does work as I described.
tzuk

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Sun May 25, 2008 11:52 am

tzuk wrote:You did not mention that you restarted the program that creates the Thumbs.db file (probably Windows Explorer) to refresh the configuration already recorded in it. So maybe there's your problem. I'm saying this because I tested it and for me it does work as I described.
Well, I'm not sure why it doesn't work for me. As I understand it, Windows creates a thumbs.db file in each folder that contains graphic files, and the file contains thumbnail preview images for use in Explorer (if you select that view, which I do not).
I restarted Windows, verified that the SB configuration showed "AutoRecoverIgnore=Thumbs.db"; ran a sandboxed Thunderbird, clicked on "Write" and attached a picture file from My Documents/My Pictures/(sub-folder)/...

I exited the message without saving and shut-down Thunderbird. Auto Delete activated.
Quick Recovery prompted to Recover Thumbs.db.

I'm using Win XP and SB v3.26, not the test version 3.26.05. Windows "Folder Options" | View | "Do not cache thumbnails" is unchecked, which I believe is default, meaning that thumbs.db files will automatically be created by Windows.
Guess I'll have to think about this for a while.

SnDPhoenix
Posts: 2690
Joined: Tue Dec 26, 2006 5:44 pm
Location: West Florida

Post by SnDPhoenix » Sun May 25, 2008 12:54 pm

tzuk wrote:Here's a little secret. :) You're not really adding an extension or a folder, in fact you are adding something that will be looked at as either a prefix of a suffix of the file/path that is a candidate for Immediate Recovery.

In other words, if the contents of that list box match either the start of the path, or the end of the path, then the path (or file) are not sent to Immediate Recovery.

So if "Add Type" .db and then edit the configuration and change that to thumbs.db, it should work as you expect.

But I will make a revision in Sandboxie Control, that if you type an entry that already includes a dot (for example thumbs.db), then it will not automatically insert a leading dot. That could be one of those "little known features" like clicking the "Edit" button on an unselected row to invoke the "Add" input box.
Amazing... It works! :D
Wow, I feel stupid now for never had trying that out in the first place... :oops:

But it is working, so thats all that matters.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Sun May 25, 2008 3:10 pm

Guest10 wrote:Quick Recovery prompted to Recover Thumbs.db.
Well, we were talking about Immediate Recovery until now. For Immediate Recovery what I said works -- and SnD confirmed it.

For Quick Recovery, I'm afraid these exceptions don't make any difference.
tzuk

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Sun May 25, 2008 3:54 pm

After shutting down my computer for a few hours, when I tried Thunderbird I had the same problem with thumbs.db being offered for Quick Recovery. After disabling all Thunderbird Add-ons, I was not getting that Quick Recovery prompt.

I re-enabled all of the TB extensions one at a time, and I still did not get any Quick Recovery prompt for that file. After that, the thumbs.db file wasn't even showing up in the sandbox folder, for a while - nor did the sandbox folder show a My Documents or My Pictures folder either, after I attached a picture from the unsandboxed My Documents folder - apparently because thumbs.db was no longer showing up in the sandbox. I didn't see it there when I looked with Explorer.

So I didn't actually do anything, but for a while I didn't get that prompt from Quick Recovery when the sandbox was deleted.
Very confusing, because it was doing that for days.

I edited this entire message: After using TB for a while, the thumbs.db file started showing-up again in Quick Recovery. For a short while, it wasn't. Definitely confusing.
And I now understand what tzuk said: that adding the thumbs.db entry, as in the previous messages, doesn't apply to Quick Recovery but to Immediate Recovery.

Thanks for accepting the request for a revision in Control. :lol:

doktornotor
Posts: 205
Joined: Mon Apr 05, 2010 8:40 am

Permanent exclusion from any recovery

Post by doktornotor » Tue Apr 13, 2010 6:29 pm

This is in reference to this thread about thumbs.db. Still cannot find a way to exclude this from any recovery whatsoever. Thanks.

tzuk
Sandboxie Founder
Sandboxie Founder
Posts: 16076
Joined: Tue Jun 22, 2004 12:57 pm

Post by tzuk » Tue Apr 13, 2010 7:47 pm

Please don't start a new topic just to link to an old topic. Just post your comment at the end of the old topic.
tzuk

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Tue Apr 13, 2010 8:25 pm

I guess that I no longer see this, since my original report, because I no longer have 'thumbs.db' files created.
I always use "Details" view in Windows Explorer, instead of "Thumbnails" view, so I set all folders to use that option.
For me, that's what I prefer anyway.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

Mike
Posts: 592
Joined: Mon Nov 16, 2009 1:27 pm

Post by Mike » Sat Apr 17, 2010 8:07 pm

doktornotor wrote:This is in reference to this thread about thumbs.db. Still cannot find a way to exclude this from any recovery whatsoever.
Perhaps one workaround would be to set: ReadFilePath=*\thumbs.db

Seems to work with no ill effects on Windows XP SP3 with Sandboxie 3.44.

doktornotor
Posts: 205
Joined: Mon Apr 05, 2010 8:40 am

Post by doktornotor » Tue Apr 20, 2010 3:44 am

Mike wrote:Perhaps one workaround would be to set: ReadFilePath=*\thumbs.db
Seems to work with no ill effects on Windows XP SP3 with Sandboxie 3.44.
Excellent. Finally the stupid thing is gone from recovery. Perhaps this should be the default. Thanks! 8)

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Tue Apr 20, 2010 10:48 am

Mike wrote:Perhaps one workaround would be to set: ReadFilePath=*\thumbs.db
Nice work, Mike.
Thanks for sharing this idea :)
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest