dovecot-2.2: lazy_expunge: If setting is empty, disable the plugin.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Apr 9 20:19:44 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/978871ca81e7
changeset: 17208:978871ca81e7
user: Timo Sirainen <tss at iki.fi>
date: Wed Apr 09 23:19:29 2014 +0300
description:
lazy_expunge: If setting is empty, disable the plugin.
Instead of assuming that we want to use prefix="" as the lazy_expunge
namespace, which is highly unlikely anyone will ever want to do.
diffstat:
src/plugins/lazy-expunge/lazy-expunge-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ce30e5ac42a9 -r 978871ca81e7 src/plugins/lazy-expunge/lazy-expunge-plugin.c
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c Wed Apr 09 23:17:09 2014 +0300
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c Wed Apr 09 23:19:29 2014 +0300
@@ -442,7 +442,7 @@
const char *env;
env = mail_user_plugin_getenv(user, "lazy_expunge");
- if (env != NULL) {
+ if (env != NULL && env[0] != '\0') {
luser = p_new(user->pool, struct lazy_expunge_mail_user, 1);
luser->module_ctx.super = *v;
user->vlast = &luser->module_ctx.super;
More information about the dovecot-cvs
mailing list