aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--antispam-plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/antispam-plugin.h b/antispam-plugin.h
index 38a3be6..fd8783a 100644
--- a/antispam-plugin.h
+++ b/antispam-plugin.h
@@ -84,6 +84,10 @@ extern bool need_folder_hook;
/*
* Dovecot version compat code
*/
+#if DOVECOT_VERSION <= DOVECOT_VERSION_CODE(1, 1, 0)
+#define mailbox_get_storage(s) mailbox_get_storage((struct mailbox *)s)
+#define mailbox_get_name(s) mailbox_get_name((struct mailbox *)s)
+#endif
#if DOVECOT_VERSION_CODE(1, 1, 0) == DOVECOT_VERSION || DOVECOT_VERSION_CODE(1, 2, 0) == DOVECOT_VERSION
#define __attr_unused__ ATTR_UNUSED