From 9690a05034ba368b48112005a36eeaa4710ac7b1 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Fri, 20 Jul 2001 19:37:53 +0000 Subject: Don't let the user remove vtrash folders. 2001-07-20 Peter Williams * component-factory.c (storage_remove_folder): Don't let the user remove vtrash folders. svn path=/trunk/; revision=11267 --- mail/ChangeLog | 5 +++++ mail/component-factory.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index 6178c131f2..7362802401 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-20 Peter Williams + + * component-factory.c (storage_remove_folder): Don't let the user + remove vtrash folders. + 2001-07-20 Peter Williams * mail-mt.c (mail_msgport_replied): Fix DanW's fix. Pass the right 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; -- cgit