[Dovecot] UW-IMAP style mbox snarfing from /var/mail/ to ~/mbox
Bernd Kuhls
bernd.kuhls at informatik.uni-oldenburg.de
Tue May 29 17:20:34 EEST 2007
Timo Sirainen wrote:
> http://dovecot.org/patches/mbox-snarf-plugin.c
Hi,
I just tried to setup this plugin on a Debian Etch machine but it
crashes the Dovecot daemons.
Debian Etch uses the sourcecode of Dovecot 1.0rc15 + some patches.
I rebuilt the Dovecot packages -common, -imapd and -pop3d using
apt-get install apt-build
apt-build build-source dovecot-common
and installed them. Then I compiled the .c file mentioned above
inside the sourcedir created by apt-build by interrupting apt-build,
then issuing these commands:
cd /var/cache/apt-build/build/dovecot-1.0.rc15/
wget http://dovecot.org/patches/mbox-snarf-plugin.c
export DOVECOT=/var/cache/apt-build/build/dovecot-1.0.rc15
gcc -fPIC -shared -Wall -I$DOVECOT -I$DOVECOT/src/lib
-I$DOVECOT/src/lib-storage -I$DOVECOT/src/lib-mail
-I$DOVECOT/src/lib-imap -DHAVE_CONFIG_H mbox-snarf-plugin.c -o
mbox_snarf_plugin.so
The compiled file mbox_snarf_plugin.so was copied to
/usr/lib/dovecot/modules/lib10_mbox_snarf_plugin.so
with symlinks inside /usr/lib/dovecot/modules/imap and
/usr/lib/dovecot/modules/pop3.
I setup /etc/dovecot/dovecot.conf according to your posting and
restarted Dovecot. But accessing Dovecot with Thunderbird produces this:
> May 29 16:01:09 bach dovecot: Killed with signal 15
> May 29 16:01:10 bach dovecot: Dovecot v1.0.rc15 starting up
> May 29 16:01:24 bach dovecot: imap-login: Login: user=<mail>, method=plain, rip=x.x.x.x, lip=x.x.x.x, TLS
> May 29 16:01:24 bach dovecot: child 28786 (imap) killed with signal 11
> May 29 16:01:25 bach dovecot: imap-login: Login: user=<mail>, method=plain, rip=x.x.x.x, lip=x.x.x.x, TLS
> May 29 16:01:25 bach dovecot: child 28791 (imap) killed with signal 11
> May 29 16:01:25 bach dovecot: imap-login: Login: user=<mail>, method=plain, rip=x.x.x.x, lip=x.x.x.x, TLS
> May 29 16:01:25 bach dovecot: child 28795 (imap) killed with signal 11
> May 29 16:01:25 bach dovecot: imap-login: Login: user=<mail>, method=plain, rip=x.x.x.x, lip=x.x.x.x, TLS
> May 29 16:01:25 bach dovecot: child 28806 (imap) killed with signal 11
I suppose I did something wrong when compiling the module, but what?
Greetings, Bernd Kuhls
More information about the dovecot
mailing list