When you delete messages from your mail folder in the Thunderbird program,
those messages won't be actually removed from the
corresponding database file, unless you compact it. Instead, Thunderbird
merely changes the status of those messages in the original email
Status of a message is described by two service tags (fields)
X-Mozilla-Status and X-Mozilla-Status2. When
Thunderbird needs to mark a message as deleted, it changes the value of
these fields without actually removing the message from a database file.
Hence, the easy way to restore a deleted message is just to correct the
status fields of the message so that Thunderbird takes it for a new one
the next time you start Thunderbird.
Some values of the status fields are given below. The values must be
exactly four or eight characters.
- 0001 - Message has been read.
- 0002 - A reply to this message has been sent.
- 0004 - User has marked (starred) this message.
- 0006 - 0002 + 0004 combined.
- 0007 - 0001 + 0002 + 0004 combined.
- 0008 - Messages with this bit set will be irreversibly removed
from a database file during the next compaction.
- 0009 - 0008 + 0001 (read, deleted message).
- 00010000 - This message is new since the last time the folder
- 00200000 - If set, this message is marked as deleted on the
server. This only applies to messages on IMAP servers.
- 00040000 - If the bit set, this thread is ignored
(In fact, a message with this bit set is not displayed).
- 10000000 - Indicates that the message has an attachment.
For more information on values of Mozilla status fields please