diff options
author | Peter Williams <peterw@ximian.com> | 2001-07-21 03:37:53 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-07-21 03:37:53 +0800 |
commit | 9690a05034ba368b48112005a36eeaa4710ac7b1 (patch) | |
tree | 260cb90971299cec4e2254ecd45f1a8ee01a50a4 /mail/component-factory.c | |
parent | fcce65ec8a149ca8f578e76ce6afd675edff196b (diff) | |
download | gsoc2013-evolution-9690a05034ba368b48112005a36eeaa4710ac7b1.tar.gz gsoc2013-evolution-9690a05034ba368b48112005a36eeaa4710ac7b1.tar.zst gsoc2013-evolution-9690a05034ba368b48112005a36eeaa4710ac7b1.zip |
Don't let the user remove vtrash folders.
2001-07-20 Peter Williams <peterw@ximian.com>
* component-factory.c (storage_remove_folder): Don't let the user
remove vtrash folders.
svn path=/trunk/; revision=11267
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 3 |
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; |