James G. Sack (jim) wrote:
DJA wrote:
I accidentally deleted the contents of an Inbox in Thunderbird (MTB). I
know how to recover it, but doing it by hand will be tedious for several
hundreds (thousands?) of emails. So, I need some command line magic or a
script to do it for me.
Basically, there is a line near the top of each email in the Inbox file
of a form similar to
X-Mozilla-Status: nnnn
where the actual value (nnnn) can be anything (e.g. 001d, ,0019, 0007,
0009, etc.). Apparently, this is a bit value. If an email has been
deleted, the 8 bit will be set. In the examples above, 001d, 0019, and
0009 would flag email as having been deleted. An email with a value of
0007, for instance, would not be flagged as deleted.
I need a way to reset (switch to 0) the 8 bit of the X-Mozilla-Status
field in every email in the Inbox file.
I'm sure you need not be told..
..BUT..
you _will_ want to proceed cautiously (backups and all).
Duh! :) Done.
Isn't it possible to do that by simply deleting the ".msf" file.
I think it may need doing when Tbird is not running.
Good luck,
..jim
I doubt it. Since the MSF file is the index for the Inbox file, I think
deleting it would have essentially the same affect as compacting the
existing file. IOW, actually removing all emails from the Inbox file
marked as deleted.
Besides, my googling returns the solution I outlined above, which does
not involve mucking with the MSF file. And I've already demonstrated
that resetting the 8 bit in the relevant field does indeed work.
In fact, I demonstrated it over 200 times!
--
Best Regards,
~DJA.
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list