I have some archived mails in compressed (by bzip2) mboxes and I would like to read them via imap Unfortunately it looks like dovecot crashes when tries to read them :(
#v+
kjonca@alfa:~/Mail/Old/Junk%sudo /usr/sbin/dovecot -n
[sudo] password for kjonca:
# 1.2.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32.7+2 i686 Debian squeeze/sid
log_path: /var/log/dovecot
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap
listen: alfa.kjonca localhost
ssl: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
login_processes_count: 1
verbose_proctitle: yes
mail_privileged_group: mail
mail_debug: yes
mbox_write_locks: fcntl dotlock
mail_plugins: mail_log zlib
mail_log_max_lines_per_sec: 0
namespace:
type: private
separator: /
location: maildir:~/Mail/def:LAYOUT=fs:INBOX=~/Mail/def
inbox: yes
list: yes
subscriptions: yes
namespace:
type: private
separator: /
prefix: #Old/
location: mbox:~/Mail/Old
list: yes
subscriptions: yes
lda:
postmaster_address: root@localhost
log_path: ~/log/dovecot.log
info_log_path: ~/log/deliver.log
mail_plugins: sieve
deliver_log_format: msgid=%m : Subject=%s : From=%f :%$
auth default:
mechanisms: digest-md5 cram-md5
passdb:
driver: pam
args: dovecot
passdb:
driver: passwd-file
args: scheme=plain-md5 /etc/security/dovecot.pwd
userdb:
driver: passwd
#v-
Then I try to read mailbox:
#v+ kjonca@alfa:~/Mail/Old/Junk%mutt -f \=\#Old/Junk/2008.bz2 #v-
In logs is: #v+ 2010-03-22 17:03:05 imap-login: Info: Login: user=<kjonca>, method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured 2010-03-22 17:03:05 IMAP(kjonca): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap 2010-03-22 17:03:06 IMAP(kjonca): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_mail_log_plugin.so 2010-03-22 17:03:06 IMAP(kjonca): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_zlib_plugin.so 2010-03-22 17:03:06 IMAP(kjonca): Info: Effective uid=1000, gid=1000, home=/home/kjonca 2010-03-22 17:03:06 IMAP(kjonca): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes 2010-03-22 17:03:06 IMAP(kjonca): Info: maildir: data=~/Mail/def:LAYOUT=fs:INBOX=~/Mail/def 2010-03-22 17:03:06 IMAP(kjonca): Info: fs: root=/home/kjonca/Mail/def, index=, control=, inbox=/home/kjonca/Mail/def 2010-03-22 17:03:06 IMAP(kjonca): Info: Namespace: type=private, prefix=#Old/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=yes 2010-03-22 17:03:06 IMAP(kjonca): Info: mbox: data=~/Mail/Old 2010-03-22 17:03:06 IMAP(kjonca): Info: mbox: INBOX defaulted to /home/kjonca/Mail/Old/inbox 2010-03-22 17:03:06 IMAP(kjonca): Info: fs: root=/home/kjonca/Mail/Old, index=, control=, inbox=/home/kjonca/Mail/Old/inbox 2010-03-22 17:03:06 IMAP(kjonca): Info: Namespace #Old/: Using permissions from /home/kjonca/Mail/Old: mode=0700 gid=-1 2010-03-22 17:03:50 dovecot: Error: child 27392 (imap) killed with signal 11 (core dumped) #v-
core stack: #v+ kjonca@alfa:~/Mail/Old/Junk%gdb -c ~/core /usr/lib/dovecot/imap [..cut...] Core was generated by `imap [kjonca 127.0.0.1]'. Program terminated with signal 11, Segmentation fault. [New process 27392] #0 memmove () at ../sysdeps/i386/i686/memmove.S:97 97 ../sysdeps/i386/i686/memmove.S: No such file or directory. in ../sysdeps/i386/i686/memmove.S (gdb) bt #0 memmove () at ../sysdeps/i386/i686/memmove.S:97 #1 0x080f60c1 in i_stream_compress (stream=0x824ca48) at istream.c:393 #2 0xb77ce68a in ?? () from /usr/lib/dovecot/modules/imap/lib20_zlib_plugin.so #3 0x0824ca48 in ?? () #4 0x00000001 in ?? () #5 0xbf8efe78 in ?? () #6 0x080dc007 in mail_cache_decision_state_update (view=0x10ef4c52, seq=0, field=136628808) at mail-cache-decisions.c:83 #7 0x080f59bd in i_stream_seek_mark (stream=0x10ef4c51, v_offset=0) at istream.c:209 #8 0x080930fb in istream_raw_mbox_seek (stream=0x8268290, offset=0) at istream-raw-mbox.c:736 #9 0x080935b5 in mbox_file_seek (mbox=0x8261f30, view=0x8264390, seq=1, deleted_r=0xbf8eff8f) at mbox-file.c:177 #10 0x080956a2 in mbox_mail_seek (mail=<value optimized out>) at mbox-mail.c:85 #11 0x08095d7f in mbox_mail_get_received_date (_mail=0x826aa10, date_r=0xbf8efffc) at mbox-mail.c:117 #12 0x08069c18 in fetch_internaldate (ctx=0x824a360, mail=0x826aa10, context=0x0) at imap-fetch.c:719 #13 0x0806a39d in imap_fetch_more (ctx=0x824a360) at imap-fetch.c:473 #14 0x08062461 in cmd_fetch (cmd=0x824a210) at cmd-fetch.c:228 #15 0x08067b7c in client_command_input (cmd=0x824a210) at client.c:612 #16 0x08067c52 in client_command_input (cmd=0x824a210) at client.c:661 #17 0x08067ed5 in client_handle_input (client=0x8249f80) at client.c:702 #18 0x080686ff in client_input (client=0x8249f80) at client.c:753 #19 0x080f96a6 in io_loop_handler_run (ioloop=0x8247e18) at ioloop-epoll.c:208 #20 0x080f8b20 in io_loop_run (ioloop=0x8247e18) at ioloop.c:335 #21 0x08070ee4 in main (argc=3, argv=0xbf8f0374, envp=0xbf8f0384) at main.c:327 Current language: auto; currently asm
#v- I tried to recompress these mboxes with gzip and dovecot perfectly works with them.
KJ
-- http://blogdebart.pl/2009/12/22/mamy-chorych-dzieci/ KRETYNIZM - ułomność predysponująca często do wampiryzmu (J.Collin de Plancy "Słownik wiedzy tajemnej")