From: Timo Sirainen Date: Wed, 12 Jun 2013 01:44:11 +0000 (+0300) Subject: zlib plugin: Removed explicit checks for maildir/sdbox/mdbox. X-Git-Tag: 2.2.3~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa2ac469f59e5841203cb9921fc74baa69e58cc4;p=thirdparty%2Fdovecot%2Fcore.git zlib plugin: Removed explicit checks for maildir/sdbox/mdbox. --- diff --git a/src/plugins/zlib/zlib-plugin.c b/src/plugins/zlib/zlib-plugin.c index 5076702294..c5538a7cb6 100644 --- a/src/plugins/zlib/zlib-plugin.c +++ b/src/plugins/zlib/zlib-plugin.c @@ -7,9 +7,6 @@ #include "ostream.h" #include "str.h" #include "mail-user.h" -#include "dbox-single/sdbox-storage.h" -#include "dbox-multi/mdbox-storage.h" -#include "maildir/maildir-storage.h" #include "index-storage.h" #include "index-mail.h" #include "compression.h" @@ -361,9 +358,8 @@ static void zlib_mailbox_allocated(struct mailbox *box) MODULE_CONTEXT_SET_SELF(box, zlib_storage_module, zbox); - if (strcmp(box->storage->name, MAILDIR_STORAGE_NAME) == 0 || - strcmp(box->storage->name, MDBOX_STORAGE_NAME) == 0 || - strcmp(box->storage->name, SDBOX_STORAGE_NAME) == 0) + if ((box->storage->class_flags & + MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS) == 0) zlib_permail_alloc_init(box, v); }