diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-27 09:41:21 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-27 09:41:21 +0800 |
commit | efddd51d3b67fbf48a6c190fa7ddfb0244be5ddf (patch) | |
tree | f66dfbe73b34497b294dc65663c668169a5a1e92 /camel/camel-store.c | |
parent | 7b792443de265dbc80d29011bd1c200e515463c8 (diff) | |
download | gsoc2013-evolution-efddd51d3b67fbf48a6c190fa7ddfb0244be5ddf.tar.gz gsoc2013-evolution-efddd51d3b67fbf48a6c190fa7ddfb0244be5ddf.tar.zst gsoc2013-evolution-efddd51d3b67fbf48a6c190fa7ddfb0244be5ddf.zip |
Use camel_vtrash_folder_new() to create the vtrash folder now.
2001-03-26 Jeffrey Stedfast <fejj@ximian.com>
* camel-store.c (init_trash): Use camel_vtrash_folder_new() to
create the vtrash folder now.
* camel-vtrash-folder.[c,h]: New subclass of CamelVeeFolder for
our vTrash folders.
* camel-folder.c (camel_folder_copy_messages_to): Don't watch for
vtrash folders anymore.
(camel_folder_move_messages_to): Same.
* camel-vee-folder.c (camel_vee_folder_class_init): Update.
(vee_move_messages_to): Rewrite to use the new move API.
* camel-filter-driver.c (do_copy): Updated to reflect
copy_message_to changes. Create a temporary uid array and use
that.
(do_move): Same.
(camel_filter_driver_filter_message): And again, here...
* providers/imap/camel-imap-folder.c (imap_copy_messages_to):
Update to the new API.
(imap_move_messages_to): Same.
(get_uid_set): New function to create a `set' string based on an
array of UIDs for use with imap_copy_messages_to.
* camel-folder.c (camel_folder_copy_messages_to): Replaces
camel_folder_copy_message_to
(camel_folder_move_message_to): Replaces
camel_folder_move_message_to.
svn path=/trunk/; revision=8960
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c index 0d39c6ee29..5cae2b9d9e 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -31,8 +31,7 @@ #include "camel-store.h" #include "camel-folder.h" -#include "camel-vee-store.h" -#include "camel-vee-folder.h" +#include "camel-vtrash-folder.h" #include "camel-exception.h" #include "camel-private.h" @@ -377,13 +376,7 @@ trash_finalize (CamelObject *trash, gpointer event_data, gpointer user_data) static void init_trash (CamelStore *store) { - char *name; - - name = g_strdup_printf ("%s?(match-all (system-flag \"Deleted\"))", _("Trash")); - - store->vtrash = camel_vee_folder_new (store, name, CAMEL_STORE_FOLDER_CREATE|CAMEL_STORE_VEE_FOLDER_AUTO|CAMEL_STORE_FOLDER_PRIVATE); - - g_free (name); + store->vtrash = camel_vtrash_folder_new (store, _("Trash")); if (store->vtrash) { /* attach to the finalise event of the vtrash */ |