diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-03-05 14:09:35 +0100 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2008-03-05 14:09:35 +0100 |
commit | 513d1c5fa703817ae8fd08fab86709a9b5c111e4 (patch) | |
tree | 9c52907651c374f78ecdf8185433bcee280c09d7 /antispam-plugin.c | |
parent | 495158b07df48dd3f3671afe41dd20d5fa73e795 (diff) | |
download | dovecot-antispam-513d1c5fa703817ae8fd08fab86709a9b5c111e4.tar.gz dovecot-antispam-513d1c5fa703817ae8fd08fab86709a9b5c111e4.tar.xz dovecot-antispam-513d1c5fa703817ae8fd08fab86709a9b5c111e4.zip |
allow appends to spam if configured (offlineimap support)
Diffstat (limited to 'antispam-plugin.c')
-rw-r--r-- | antispam-plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/antispam-plugin.c b/antispam-plugin.c index cfec425..407b909 100644 --- a/antispam-plugin.c +++ b/antispam-plugin.c @@ -48,6 +48,7 @@ static char *default_spam_folders[] = { }; static char **spam_folders = default_spam_folders; static char **unsure_folders = NULL; +bool antispam_can_append_to_spam = FALSE; static bool mailbox_in_list(struct mailbox *box, char **list) { @@ -126,6 +127,12 @@ void PLUGIN_FUNCTION(init)(void) if (tmp) spam_folders = p_strsplit(global_pool, tmp, ";"); + tmp = get_setting("ALLOW_APPEND_TO_SPAM"); + if (tmp && strcasecmp(tmp, "yes") == 0) { + antispam_can_append_to_spam = TRUE; + debug("allowing APPEND to spam folders"); + } + if (spam_folders) { iter = spam_folders; while (*iter) { |