diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-vfolder.c | 15 |
2 files changed, 21 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 57ddb77b0f..4c7c9fde3b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2008-10-17 Srinivasa Ragavan <sragavan@novell.com> + + ** Fix for bug #555276 + + * mail/mail-vfolder.c: Don't load a vfolder as a sub folder. + 2008-10-17 Milan Crha <mcrha@redhat.com> ** Fix for bug #364542 diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 951bcc51e7..f3b9b90aed 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -102,6 +102,13 @@ vfolder_setup_exec (struct _setup_msg *m) l = m->sources_uri; while (l && !shutdown) { d(printf(" Adding uri: %s\n", (char *)l->data)); + if (strncmp((char *)l->data, "vfolder:/", 9) == 0 || + strncmp((char *)l->data, "email://vfolder@local", 21) == 0) { + g_warning ("VFolder of VFolders not supporting. Ignoring loading this vfolder as a subfolder\n"); + l=l->next; + continue; + } + folder = mail_tool_uri_to_folder (l->data, 0, &m->base.ex); if (folder) { list = g_list_append(list, folder); @@ -698,6 +705,14 @@ rule_add_sources(GList *l, GList **sources_folderp, GList **sources_urip) while (l) { char *curi = em_uri_to_camel(l->data); + if (strncmp((char *)l->data, "vfolder:/", 9) == 0 || + strncmp((char *)l->data, "email://vfolder@local", 21) == 0) { + g_warning ("VFolder of VFolders not supporting. Ignoring loading this vfolder as a subfolder\n"); + l=l->next; + g_free(curi); + continue; + } + if (mail_note_get_folder_from_uri(curi, &newfolder)) { if (newfolder) sources_folder = g_list_append(sources_folder, newfolder); |