[Dovecot] Dovecot antispam plugin for 2.2
Micah Anderson
micah at riseup.net
Wed Aug 21 23:19:46 EEST 2013
Hello,
I recently was looking to update to dovecot 2.2 and I have been happily
using the dovecot-antispam plugin in 2.1, but found that there have been
some changes in dovecot that make this version not compile against 2.2.
I'm wondering if Johannes you have any plans to update it, or if others
have managed to figure out what is necessary to get it to work?
The particular piece that I am currently stuck on is that the
dict_init() in dovecot now requires more arguments than in previous
versions, it now requires this:
int dict_init(const char *uri, enum dict_data_type value_type,
const char *username, const char *base_dir, struct dict **dict_r,
const char **error_r);
but previously, we only needed four arguments. Now we need to know what
to supply for '**dict_r' and '**error_r'. Any advise/help would be appreciated:
make[1]: Entering directory `/home/micah/debian/dovecot-antispam/dovecot-antispam-2.0+20120225'
cc -DHAVE_CONFIG_H -I/usr/include/dovecot/ -I/usr/include/dovecot/src/ -I/usr/include/dovecot/src/lib/ -I/usr/include/dovecot/src/lib-storage/ -I/usr/include/dovecot/src/lib-mail/ -I/usr/include/dovecot/src/lib-imap/ -I/usr/include/dovecot/src/lib-dict/ -I/usr/include/dovecot/src/lib-index/ -I/usr/include/dovecot/src/imap/ -o dovecot-version dovecot-version.c
./dovecot-version > dovecot-version.h
CC antispam-storage.o
In file included from antispam-storage-2.2.c:20:0,
from antispam-storage.c:3:
antispam-plugin.h: In function ‘string_dict_init’:
antispam-plugin.h:288:2: error: too few arguments to function ‘dict_init’
return dict_init(uri, DICT_DATA_TYPE_STRING, username, NULL);
^
In file included from antispam-plugin.h:13:0,
from antispam-storage-2.2.c:20,
from antispam-storage.c:3:
/usr/include/dovecot/dict.h:34:5: note: declared here
int dict_init(const char *uri, enum dict_data_type value_type,
^
micah
More information about the dovecot
mailing list