From 6bebd14b92660bd0c95eac2d003764b71e9253d1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 16 Jul 2001 22:04:14 +0000 Subject: Use g_strcasecmp() when looking for a Trash folder - it may be lowercase 2001-07-16 Jeffrey Stedfast * mail-ops.c (add_vtrash_info): Use g_strcasecmp() when looking for a Trash folder - it may be lowercase or something funky. * mail-local.c (init_trash): No need to specify the vfolder expression here. This code was moved into camel-vtrash-folder.c ages ago. * component-factory.c: Let VTrash folders accept/export the same dnd types as normal folders. svn path=/trunk/; revision=11140 --- mail/mail-local.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'mail/mail-local.c') diff --git a/mail/mail-local.c b/mail/mail-local.c index 56b68344e0..5f77db80d4 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -350,13 +350,8 @@ static void init_trash (CamelStore *store) { MailLocalStore *local_store = MAIL_LOCAL_STORE (store); - char *name; - name = g_strdup_printf ("%s?(match-all (system-flag \"Deleted\"))", "vTrash"); - - store->vtrash = camel_vtrash_folder_new (store, name); - - g_free (name); + store->vtrash = camel_vtrash_folder_new (store, _("Trash")); if (store->vtrash) { /* attach to the finalize event of the vtrash */ @@ -446,7 +441,8 @@ struct _register_msg { MailLocalFolder *local_folder; }; -static char *register_folder_desc(struct _mail_msg *mm, int done) +static char * +register_folder_desc(struct _mail_msg *mm, int done) { struct _register_msg *m = (struct _register_msg *)mm; -- cgit