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.

--
   Best Regards,
      ~DJA.


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to