|
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
database file.
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.
X-Mozilla-Status
- 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).
X-Mozilla-Status2
- 00010000 - This message is new since the last time the folder
was closed.
- 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
refer to
http://lxr.mozilla.org/seamonkey/source/mailnews/base/public/nsMsgMessageFlags.h#108 |
|