aboutsummaryrefslogblamecommitdiffstats
path: root/api-compat.h
blob: f0a04768f5c560bf1eff7a0753a75e9a231a5253 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 */