aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
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);
15dc40dffb9626'>- Pass maintainership to gabor.alepulver2009-02-281-1/+1