On Wed, 1 Nov 2006, Andrew Daviel wrote:
However ... while looking for backups (created using amanda) I found
a backup set containing a corrupted mailbox. The directory contains:
-rw------- 1 amanda disk 1348761 Oct 30 04:28 .mix4540cf00
-rw------- 1 amanda disk 4477 Oct 30 04:28 .mixindex
-rw------- 1 amanda disk 44 Oct 30 04:28 .mixmeta
-rw------- 1 amanda disk 3887 Oct 29 15:32 .mixsortcache
-rw------- 1 amanda disk 2041 Nov 1 16:25 .mixstatus
The index shows 58 messages but there are only 20 in .mix4540cf00
The .mix4540cf00 file is over 1MB. Did you set MIXDATAROLL higher than
its default of 1MB?
A data file can go over the MIXDATAROLL size via multi-message appending
(thus mailboxes copied using mailutil will have a single large data file),
but any subsequent message delivery should have rolled over to a new file.
In the .mixindex file, look at the per-message records (anything after the
first line). The fourth colon-delimited field is the mix data file
number. Is it 4540cf00 in the damaged messages too?
For example, in a record of:
:00000002:20050609042321-0700:00002323:447e4c8b:00000000:0000002d:000006d9:
the data file is .mix447e4c8b For what it's worth, the fields of the index
in this example are:
00000002 hex IMAP UID
20050609042321-0700 IMAP INTERNALDATE
00002323 hex IMAP RFC822.SIZE
447e4c8b hex mix data file number
00000000 hex offset of message in mix data file
0000002d hex size of mix data file internal header
(currently always 0x2d, but may change later)
000006d9 hex size of message RFC822.HEADER
What I wonder is whether the 38 lost messages are in a different data file
which somehow has gone missing.
If I look with Pine the first 38 are garbled in the index and crash Pine if
selected; the 20 real ones seem OK.
Could you elaborate on what you mean by "crash Pine"? Pine should never
crash, even if in this circumstance.
Did you get any error messages? If so, what messages?
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw