changeset 9522:029c3afcfbd0 HEAD

lazy-expunge: Ignore non-private namespaces.
author Timo Sirainen <tss@iki.fi>
date Tue, 29 Dec 2009 17:19:16 -0500
parents 56dd8c276ed6
children b48a4af4248d
files src/plugins/lazy-expunge/lazy-expunge-plugin.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Wed Dec 23 16:00:36 2009 -0500
+++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c	Tue Dec 29 17:19:16 2009 -0500
@@ -633,6 +633,11 @@
 	const char *const *p;
 	unsigned int i;
 
+	if (storage->ns->type != NAMESPACE_PRIVATE) {
+		/* this works only for private namespaces. */
+		return;
+	}
+
 	/* if this is one of our internal storages, mark it as such before
 	   quota plugin sees it */
 	p = t_strsplit_spaces(getenv("LAZY_EXPUNGE"), " ");