aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-06-02 10:46:46 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-06-02 10:46:46 +0200
commitc35dffecef73d4c69a141d1799433d6265846f05 (patch)
tree3fbdcee09da24b83ef7f2d98e876bdee98586bcd
parent2e009bcb22f479a40f8112f8c8ea8d6a5f17b732 (diff)
downloaddovecot-antispam-c35dffecef73d4c69a141d1799433d6265846f05.tar.gz
dovecot-antispam-c35dffecef73d4c69a141d1799433d6265846f05.tar.xz
dovecot-antispam-c35dffecef73d4c69a141d1799433d6265846f05.zip
improve verbose logging
-rw-r--r--antispam-plugin.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/antispam-plugin.c b/antispam-plugin.c
index af594fc..a7a477b 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -74,20 +74,29 @@ static bool mailbox_in_list(struct mailbox *box, char **list)
bool mailbox_is_spam(struct mailbox *box)
{
- debug_verbose("mailbox_is_spam(%s)\n", mailbox_get_name(box));
- return mailbox_in_list(box, spam_folders);
+ bool ret;
+
+ ret = mailbox_in_list(box, spam_folders);
+ debug_verbose("mailbox_is_spam(%s): %d\n", mailbox_get_name(box), ret);
+ return ret;
}
bool mailbox_is_trash(struct mailbox *box)
{
- debug_verbose("mailbox_is_trash(%s)\n", mailbox_get_name(box));
- return mailbox_in_list(box, trash_folders);
+ bool ret;
+
+ ret = mailbox_in_list(box, trash_folders);
+ debug_verbose("mailbox_is_trash(%s): %d\n", mailbox_get_name(box), ret);
+ return ret;
}
bool mailbox_is_unsure(struct mailbox *box)
{
- debug_verbose("mailbox_is_unsure(%s)\n", mailbox_get_name(box));
- return mailbox_in_list(box, unsure_folders);
+ bool ret;
+
+ ret = mailbox_in_list(box, unsure_folders);
+ debug_verbose("mailbox_is_unsure(%s): %d\n", mailbox_get_name(box), ret);
+ return ret;
}
bool keyword_is_spam(const char *keyword)