From 94e5e07c847768a15157c183aaa3bcb914e1afc2 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Sun, 30 Sep 2007 18:24:28 +0200 Subject: Make it build against dovecot 1.1 Untested, use at your own risk, mostly consisted of copying changes from the cmd-copy.c implementation into plugin.c. --- api-compat.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 api-compat.h (limited to 'api-compat.h') diff --git a/api-compat.h b/api-compat.h new file mode 100644 index 0000000..f0a0476 --- /dev/null +++ b/api-compat.h @@ -0,0 +1,15 @@ +#ifndef _ANTISPAM_API_COMPAT_H +#define _ANTISPAM_API_COMPAT_H + +#if DOVECOT_VER==10000 +#define MAILBOX_TRANSACTION_FLAG_ASSIGN_UIDS 0 +#define str_array_length strarray_length +#define IMAP_SYNC_FLAG_SAFE 0 +#define mailbox_transaction_commit(arg) mailbox_transaction_commit(arg, 0) +#define mempool_unref(poolptr) pool_unref((*poolptr)) +#define command_register(str, func, flags) command_register(str, func) +#else +#define mempool_unref(poolptr) pool_unref(poolptr) +#endif + +#endif /* _ANTISPAM_API_COMPAT_H */ -- cgit v1.2.3