After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327329 - Folders created using other clients not listed under Evolution until restart
Folders created using other clients not listed under Evolution until restart
Status: RESOLVED DUPLICATE of bug 330838
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-01-17 11:45 UTC by Sankar P
Modified: 2013-09-13 00:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sankar P 2006-01-17 11:45:11 UTC
I created a folder using GroupWise client and moved a few messages to it.
In Evolution, this folder is not listed under IMAP, even after restarting Evoltuion.
However, SOAP properly lists this folder, (getting the new folder in the next getFolderList call).
Comment 1 André Klapper 2006-01-19 10:27:59 UTC
fixing summary typo
Comment 2 Shreyas Srinivasan 2006-02-01 06:03:01 UTC
Well, it appears the second time you start up evo. 

The code is kinda lame here 

	count = camel_store_summary_count((CamelStoreSummary *)imap_store->summary);
	for (i=0;i<count;i++) {
		si = camel_store_summary_index((CamelStoreSummary *)imap_store->summary, i);
		g_printf ("The actual path is %s\n", si->path);
		if (si == NULL)
			continue;

		if (imap_match_pattern(imap_store->dir_sep, pattern, camel_imap_store_info_full_name(imap_store->summary, si))) {
			if ((fi = g_hash_table_lookup(present, camel_store_info_path(imap_store->summary, si))) != NULL) {
				if (((fi->flags ^ si->flags) & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED)) {
					si->flags = (si->flags & ~CAMEL_FOLDER_SUBSCRIBED) | (fi->flags & CAMEL_FOLDER_SUBSCRIBED);
					camel_store_summary_touch((CamelStoreSummary *)imap_store->summary);
				}
			} else {
				camel_store_summary_remove((CamelStoreSummary *)imap_store->summary, si);
				count--;
				i--;
			}
		}
		camel_store_summary_info_free((CamelStoreSummary *)imap_store->summary, si);
	}



As you can see it looks for the cached folders in the LIST response but does not add new folders immediately. They get written at shutdown and the next startup the new folders are loaded. I need a efficient way to look up store whether a folder in LIST response is actually present in the cache. I am gonna dig into this today. Will solve a few other issues. 
Comment 3 Poornima 2006-08-18 17:51:03 UTC
Confirming this bug, it would be great if this bug could be fixed for 2.8. 
Comment 4 Shreyas Srinivasan 2006-08-19 05:48:12 UTC
Hmmm... Not easy to fix. I did write up a fix but that never worked though, there is more to it than the code i pasted. Even if you throw a new_folder created signal it does not get picked up immediately. 
Comment 5 Josh Triplett 2007-10-14 05:10:48 UTC
I think this should become a duplicate of 330838, or vice versa.
Comment 6 Ricky Zhou 2007-10-14 06:50:20 UTC
As Josh mentioned, this looks like a duplicate of #330838.

*** This bug has been marked as a duplicate of 330838 ***