From 0b71da2cf3db0f299599f1dd8e5609574e498985 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Mon, 6 Aug 2001 20:32:51 +0000 Subject: Make vtrash folders on other storages with a "vtrash" type, so they get 2001-08-06 Jason Leach * mail-callbacks.c (create_folders): Make vtrash folders on other storages with a "vtrash" type, so they get the little trashcan icon. svn path=/trunk/; revision=11709 --- mail/ChangeLog | 6 ++++++ mail/mail-callbacks.c | 15 +++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 96fc9d4e71..b45018c94c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-08-06 Jason Leach + + * mail-callbacks.c (create_folders): Make vtrash folders on other + storages with a "vtrash" type, so they get the little trashcan + icon. + 2001-08-06 Peter Williams * subscribe-dialog.[ch]: Reimplement to be asynchronous and pretty, diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index b225c9bd98..56c5516d87 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -2078,10 +2078,17 @@ create_folders (EvolutionStorage *storage, const char *prefix, CamelFolderInfo * mail_folder_cache_note_folderinfo (fi->url, fi); path = g_strdup_printf ("%s/%s", prefix, fi->name); - evolution_storage_new_folder (storage, path, fi->name, - "mail", fi->url, - fi->name, /* description */ - fi->unread_message_count > 0); + + if (!strncmp (fi->url, "vtrash:", 7)) + evolution_storage_new_folder (storage, path, fi->name, + "vtrash", fi->url, + fi->name, /* description */ + fi->unread_message_count > 0); + else + evolution_storage_new_folder (storage, path, fi->name, + "mail", fi->url, + fi->name, /* description */ + fi->unread_message_count > 0); if (fi->child) create_folders (storage, path, fi->child); -- cgit