On Mon Apr 21, 2003 at 23:02:13 +0300, Timo Sirainen wrote:
Hmm.. This is quite likely because struct mail_index_data_record_header isn't padded to take 8 bytes with 32bit off_t. Has all systems until now really had 64bit off_t? This should fix it:
+ time_t filler;
Now, the error message is different:
imap(xxx): Apr 21 20:42:14 Error: Corrupted index data file .../Mail/.imap/INBOX/.imap.index.data: Invalid location field for record 1
imap(xxx): Apr 21 20:42:14 Error: Corrupted index data file .../Mail/.imap/INBOX/.imap.index.data: Invalid location field for record 1
dovecot: Apr 21 20:42:14 Error: child 73232 (imap) killed with signal 11
I deleted the .imap dir before connecting and the mbox file is empty in
this case here.
If the mbox contains some mails (7 in this case), I'm getting this
(.imap dir also didn't exist before):
imap(xxx): Apr 21 20:52:52 Error: Corrupted index data file .../Mail/test/.imap/box2/.imap.index.data: Invalid location field for record 7
That's what I have for now. The AC_AIX is probably not needed...
diff -ur dovecot-0.99.9-test6.orig/configure.in dovecot-0.99.9-test6/configure.in
--- dovecot-0.99.9-test6.orig/configure.in Mon Apr 21 17:54:11 2003
+++ dovecot-0.99.9-test6/configure.in Mon Apr 21 22:06:09 2003
@@ -5,6 +5,7 @@
AM_MAINTAINER_MODE
+AC_AIX
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
diff -ur dovecot-0.99.9-test6.orig/src/auth/mycrypt.c dovecot-0.99.9-test6/src/auth/mycrypt.c
--- dovecot-0.99.9-test6.orig/src/auth/mycrypt.c Tue Nov 26 19:39:57 2002
+++ dovecot-0.99.9-test6/src/auth/mycrypt.c Mon Apr 21 22:15:16 2003
@@ -1,5 +1,5 @@
#define _XOPEN_SOURCE 4
-#define _XOPEN_SOURCE_EXTENDED
+#define _XOPEN_SOURCE_EXTENDED 1
#define _XOPEN_VERSION 4
#define _XPG4_2
#include