[Dovecot] invalid mbox files

Harout S. Hedeshian harout at hedeshian.net
Sat Jan 7 22:51:11 EET 2006


Timo Sirainen wrote ..
> On Fri, 2006-01-06 at 19:17 -0700, Harout S. Hedeshian wrote:
> > Timo Sirainen wrote ..
> > > On Fri, 2006-01-06 at 12:11 -0700, Harout S. Hedeshian wrote:
> > > > > From someone at somewhere  Wed Jan  5 09:03:48 2005
> > > ..
> > > > From - Sat, 6 Apr 2002 04:07:18
> > > 
> > > How have you added the mails to the mailbox? Dovecot can't handle that
> > > kind of a timestamp. 
> > 
> > Interesting... The dovecot 0.99 I was using was packaged with Mandriva.
> Is it possible that they added support for that time stamp themselves?
> My mailbox files get generated one of three ways: thunderbird, fetchmail,
> and postfix. I used thunderbird to convert my Outlook files to mbox files,
> and thats the one that I sent. Here is a sample timestamp from postfix:
> 
> It worked with 0.99 only because Dovecot didn't check errors as well as
> 1.0 does. So it just parsed those timestamps as being invalid, and set
> the received-time of mails wrong.
> 
> > > I suppose I could add support for it..
> > 
> > Unless you know of a conversion utility, I think that would be a good
> idea. I don't want to edit thousands of emails for multiple users manually
> in order to use dovecot.
> 
> Dovecot's current CVS version supports that timestamp format.

How do I compile the CVS version? "configure" seems to be missing. I tried downloading the snapshot from 20060105 but that fails make:

~
main.c:14:25: dict-client.h: No such file or directory
main.c: In function `main_init':
main.c:162: warning: implicit declaration of function `dict_client_register'
main.c: In function `main_deinit':
main.c:206: warning: implicit declaration of function `dict_client_unregister'
make[3]: *** [main.o] Error 1
make[3]: Leaving directory `/root/dovecot-1.0.alpha5/src/imap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/dovecot-1.0.alpha5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-1.0.alpha5'
make: *** [all] Error 2

The 20060107 snapshot won't ./configure :

configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating src/lib/Makefile
config.status: creating src/lib-sql/Makefile
config.status: creating src/lib-auth/Makefile
config.status: creating src/lib-charset/Makefile
config.status: creating src/lib-dict/Makefile
config.status: creating src/lib-imap/Makefile
config.status: creating src/lib-index/Makefile
config.status: creating src/lib-mail/Makefile
config.status: creating src/lib-ntlm/Makefile
config.status: creating src/lib-settings/Makefile
config.status: creating src/lib-storage/Makefile
config.status: creating src/lib-storage/index/Makefile
config.status: creating src/lib-storage/index/maildir/Makefile
config.status: creating src/lib-storage/index/mbox/Makefile
config.status: creating src/lib-storage/index/dbox/Makefile
config.status: creating src/lib-storage/subscription-file/Makefile
config.status: creating src/lib-storage/register/Makefile
config.status: creating src/auth/Makefile
config.status: error: cannot find input file: src/dict/Makefile.in

[root at www dovecot-1.0.alpha5]# make
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make  all-recursive
make[1]: Entering directory `/root/dovecot-1.0.alpha5'
Making all in src
make[2]: Entering directory `/root/dovecot-1.0.alpha5/src'
Making all in lib
make[3]: Entering directory `/root/dovecot-1.0.alpha5/src/lib'
Makefile:423: .deps/base64.Po: No such file or directory
Makefile:424: .deps/bsearch-insert-pos.Po: No such file or directory
Makefile:425: .deps/buffer.Po: No such file or directory
Makefile:426: .deps/compat.Po: No such file or directory
Makefile:427: .deps/data-stack.Po: No such file or directory
Makefile:428: .deps/env-util.Po: No such file or directory
Makefile:429: .deps/failures.Po: No such file or directory
Makefile:430: .deps/fd-close-on-exec.Po: No such file or directory
Makefile:431: .deps/fd-set-nonblock.Po: No such file or directory
Makefile:432: .deps/fdpass.Po: No such file or directory
Makefile:433: .deps/file-cache.Po: No such file or directory
Makefile:434: .deps/file-dotlock.Po: No such file or directory
Makefile:435: .deps/file-lock.Po: No such file or directory
Makefile:436: .deps/file-set-size.Po: No such file or directory
Makefile:437: .deps/hash.Po: No such file or directory
Makefile:438: .deps/hex-binary.Po: No such file or directory
Makefile:439: .deps/hex-dec.Po: No such file or directory
Makefile:440: .deps/hmac-md5.Po: No such file or directory
Makefile:441: .deps/home-expand.Po: No such file or directory
Makefile:442: .deps/hostpid.Po: No such file or directory
Makefile:443: .deps/imem.Po: No such file or directory
Makefile:444: .deps/ioloop-epoll.Po: No such file or directory
Makefile:445: .deps/ioloop-kqueue.Po: No such file or directory
Makefile:446: .deps/ioloop-notify-dn.Po: No such file or directory
Makefile:447: .deps/ioloop-notify-inotify.Po: No such file or directory
Makefile:448: .deps/ioloop-notify-kqueue.Po: No such file or directory
Makefile:449: .deps/ioloop-notify-none.Po: No such file or directory
Makefile:450: .deps/ioloop-poll.Po: No such file or directory
Makefile:451: .deps/ioloop-select.Po: No such file or directory
Makefile:452: .deps/ioloop.Po: No such file or directory
Makefile:453: .deps/iostream.Po: No such file or directory
Makefile:454: .deps/istream-data.Po: No such file or directory
Makefile:455: .deps/istream-file.Po: No such file or directory
Makefile:456: .deps/istream-limit.Po: No such file or directory
Makefile:457: .deps/istream-mmap.Po: No such file or directory
Makefile:458: .deps/istream-seekable.Po: No such file or directory
Makefile:459: .deps/istream.Po: No such file or directory
Makefile:460: .deps/lib-signals.Po: No such file or directory
Makefile:461: .deps/lib.Po: No such file or directory
Makefile:462: .deps/md4.Po: No such file or directory
Makefile:463: .deps/md5.Po: No such file or directory
Makefile:464: .deps/mempool-alloconly.Po: No such file or directory
Makefile:465: .deps/mempool-datastack.Po: No such file or directory
Makefile:466: .deps/mempool-system.Po: No such file or directory
Makefile:467: .deps/mempool-unsafe-datastack.Po: No such file or directory
Makefile:468: .deps/mempool.Po: No such file or directory
Makefile:469: .deps/mkdir-parents.Po: No such file or directory
Makefile:470: .deps/mmap-anon.Po: No such file or directory
Makefile:471: .deps/mmap-util.Po: No such file or directory
Makefile:472: .deps/module-dir.Po: No such file or directory
Makefile:473: .deps/network.Po: No such file or directory
Makefile:474: .deps/ostream-crlf.Po: No such file or directory
Makefile:475: .deps/ostream-file.Po: No such file or directory
Makefile:476: .deps/ostream.Po: No such file or directory
Makefile:477: .deps/primes.Po: No such file or directory
Makefile:478: .deps/printf-upper-bound.Po: No such file or directory
Makefile:479: .deps/process-title.Po: No such file or directory
Makefile:480: .deps/randgen.Po: No such file or directory
Makefile:481: .deps/read-full.Po: No such file or directory
Makefile:482: .deps/restrict-access.Po: No such file or directory
Makefile:483: .deps/restrict-process-size.Po: No such file or directory
Makefile:484: .deps/safe-memset.Po: No such file or directory
Makefile:485: .deps/safe-mkdir.Po: No such file or directory
Makefile:486: .deps/sendfile-util.Po: No such file or directory
Makefile:487: .deps/seq-range-array.Po: No such file or directory
Makefile:488: .deps/sha1.Po: No such file or directory
Makefile:489: .deps/str-sanitize.Po: No such file or directory
Makefile:490: .deps/str.Po: No such file or directory
Makefile:491: .deps/strescape.Po: No such file or directory
Makefile:492: .deps/strfuncs.Po: No such file or directory
Makefile:493: .deps/unix-socket-create.Po: No such file or directory
Makefile:494: .deps/unlink-directory.Po: No such file or directory
Makefile:495: .deps/unlink-lockfiles.Po: No such file or directory
Makefile:496: .deps/utc-mktime.Po: No such file or directory
Makefile:497: .deps/utc-offset.Po: No such file or directory
Makefile:498: .deps/var-expand.Po: No such file or directory
Makefile:499: .deps/write-full.Po: No such file or directory
make[3]: *** No rule to make target `.deps/write-full.Po'.  Stop.
make[3]: Leaving directory `/root/dovecot-1.0.alpha5/src/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/dovecot-1.0.alpha5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-1.0.alpha5'
make: *** [all] Error 2

It seems like the code is horribly broken. All of the nightly snapshots except for 20060107 (which won't configure) fail with "main.c:14:25: dict-client.h: No such file or directory" it does this for src/imap/main.c AND src/pop3/main.c . I tried commenting out any lines that had to do with "dict-client.h" "dict_client_register();" and "dict_client_unregister();" inside the two files and it would compile those files but it would fail in src/deliver claiming that it is too old?

make[3]: Entering directory `/root/dovecot-1.0.alpha5/src/deliver'
~
deliver.c:4:2: #error This program is somewhat out of date, use dovecot-lda instead
make[3]: *** [deliver.o] Error 1
make[3]: Leaving directory `/root/dovecot-1.0.alpha5/src/deliver'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/dovecot-1.0.alpha5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/dovecot-1.0.alpha5'
make: *** [all] Error 2

Harout Hedeshian



More information about the dovecot mailing list