aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-07 04:32:51 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-07 04:32:51 +0800
commit0b71da2cf3db0f299599f1dd8e5609574e498985 (patch)
tree001f0c8a99f660742ede51c0a41cf1fcaac677ee /mail/mail-callbacks.c
parent3114fe1b36313a7eb047ff462a316e01fa497e04 (diff)
downloadgsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar.gz
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar.bz2
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar.lz
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar.xz
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.tar.zst
gsoc2013-evolution-0b71da2cf3db0f299599f1dd8e5609574e498985.zip
Make vtrash folders on other storages with a "vtrash" type, so they get
2001-08-06 Jason Leach <jleach@ximian.com> * 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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c15
1 files changed, 11 insertions, 4 deletions
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);