aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 039cacd7df..272f5d571a 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -781,6 +781,9 @@ storage_remove_folder (EvolutionStorage *storage,
g_warning ("storage_remove_folder: path=\"%s\"; uri=\"%s\"", path, physical_uri);
if (*physical_uri) {
+ if (strncmp (physical_uri, "vtrash:", 7) == 0)
+ return EVOLUTION_STORAGE_ERROR_INVALID_URI;
+
url = camel_url_new (physical_uri, NULL);
if (!url)
return EVOLUTION_STORAGE_ERROR_INVALID_URI;