diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 15:05:54 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 15:05:54 +0200 |
commit | 2822b28cc9840b5ff3ea192aa12b8154fc3a163a (patch) | |
tree | a6a30b43df884945abe65006c4a76b9b7b9f654c /antispam-plugin.h | |
parent | 74b2bd7184ad32939235be32452d3569bba67370 (diff) | |
download | dovecot-antispam-2822b28cc9840b5ff3ea192aa12b8154fc3a163a.tar.gz dovecot-antispam-2822b28cc9840b5ff3ea192aa12b8154fc3a163a.tar.xz dovecot-antispam-2822b28cc9840b5ff3ea192aa12b8154fc3a163a.zip |
this seems to make the storage-based plugin work
Diffstat (limited to '')
-rw-r--r-- | antispam-plugin.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/antispam-plugin.h b/antispam-plugin.h index 7d9003b..de5dca3 100644 --- a/antispam-plugin.h +++ b/antispam-plugin.h @@ -20,10 +20,11 @@ void backend_init(pool_t pool); void backend_exit(void); int backend_handle_mail(struct mailbox_transaction_context *t, struct antispam_transaction_context *ast, - struct mail *mail); + struct mail *mail, bool from_spam); struct antispam_transaction_context *backend_start(struct mailbox *box); void backend_rollback(struct antispam_transaction_context *ast); -int backend_commit(struct antispam_transaction_context *ast); +int backend_commit(struct mailbox_transaction_context *ctx, + struct antispam_transaction_context *ast); #ifdef CONFIG_DEBUG void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); @@ -36,7 +37,7 @@ static inline void debug(const char *fmt, ...) void antispam_mail_storage_created(struct mail_storage *storage); void (*antispam_next_hook_mail_storage_created)(struct mail_storage *storage); -bool mailbox_is_spam(struct mail_storage *storage, struct mailbox *box); -bool mailbox_is_trash(struct mail_storage *storage, struct mailbox *box); +bool mailbox_is_spam(struct mailbox *box); +bool mailbox_is_trash(struct mailbox *box); #endif /* _ANTISPAM_PLUGIN_H */ |