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 581424 - Personal folder tree appears besides Public folder when you go to Folder > Subscription
Personal folder tree appears besides Public folder when you go to Folder > Su...
Status: RESOLVED FIXED
Product: Evolution Exchange
Classification: Deprecated
Component: Connector
2.26.x
Other Linux
: Normal major
: ---
Assigned To: Bharath Acharya
Ximian Connector QA
Depends on: 413422
Blocks:
 
 
Reported: 2009-05-05 08:54 UTC by Akhil Laddha
Modified: 2009-05-26 10:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Screen shot (11.94 KB, image/png)
2009-05-05 08:57 UTC, Akhil Laddha
  Details
Introduce a new folderinfo flag for subscription lists. (588 bytes, patch)
2009-05-07 03:32 UTC, Johnny Jacob
committed Details | Review
Corresponding evolution change. Use SUBSCRIPTION_LIST when called from subscription editor. (736 bytes, patch)
2009-05-07 03:34 UTC, Johnny Jacob
committed Details | Review
e-e patch (1.87 KB, patch)
2009-05-22 06:01 UTC, Bharath Acharya
reviewed Details | Review

Description Akhil Laddha 2009-05-05 08:54:13 UTC
Evolution 2.27.1 

Folder > Subscription > Exchange account should display only public folder list.
Comment 1 Akhil Laddha 2009-05-05 08:57:34 UTC
Created attachment 134003 [details]
Screen shot
Comment 2 Johnny Jacob 2009-05-06 03:55:00 UTC
Confirming.
Comment 3 Johnny Jacob 2009-05-06 04:05:27 UTC
happens with evolution-mapi also.
Comment 4 Johnny Jacob 2009-05-06 05:35:52 UTC
@@ -357,7 +356,7 @@ sub_folderinfo_exec (struct _emse_folderinfo_msg *m)
 
 	if (m->seq == m->sub->seq) {
 		camel_operation_register(m->base.cancel);
-		m->info = camel_store_get_folder_info(m->sub->store, m->node?m->node->info->full_name:pub_full_name, CAMEL_STORE_FOLDER_INFO_FAST | CAMEL_STORE_FOLDER_INFO_NO_VIRTUAL, &m->base.ex);
+		m->info = camel_store_get_folder_info(m->sub->store, m->node?m->node->info->full_name:pub_full_name, CAMEL_STORE_FOLDER_INFO_NO_VIRTUAL, &m->base.ex);
 		camel_operation_unregister(m->base.cancel);
 	}
 }

http://git.gnome.org/cgit/evolution/diff/mail/em-subscribe-editor.c?id=8a072ffc7c0ddcde472877a51ace0bb14f86fb0a (2nd hunk)

Milan, Is that a valid hunk or a accidental commit ?
Comment 5 Milan Crha 2009-05-06 09:03:10 UTC
It is intended, because in camel-store.h:
#ifndef CAMEL_DISABLE_DEPRECATED
#define CAMEL_STORE_FOLDER_INFO_FAST       (1 << 0)
#endif /* CAMEL_DISABLE_DEPRECATED */

The only thing is that I gave up on the full removal of this, because it's on too many places, and the main focus of the bug were gtk+ deprecated symbols.
Comment 6 Johnny Jacob 2009-05-06 09:26:12 UTC
7bd222111978bf224554f835e1a3da57e682207e is the commit that deprecated those flags.

http://git.gnome.org/cgit/evolution-data-server/commit/?id=7bd222111

evolution-exchange and evolution-mapi depends on INFO_FAST to fetch public folder hierarchy. This was a bad assumption. But it is broken now. 
Comment 7 Matthew Barnes 2009-05-06 11:28:47 UTC
I mentioned this to jony already on IRC, but the rationale for that comes from the camel_store_get_folder_info() documentation:

  The CAMEL_STORE_FOLDER_INFO_FAST flag should be considered
  deprecated; most backends will behave the same whether it is
  supplied or not.  The only guaranteed way to get updated folder
  counts is to both open the folder and invoke refresh_info() it.
Comment 8 Johnny Jacob 2009-05-07 03:32:36 UTC
Created attachment 134143 [details] [review]
Introduce a new folderinfo flag for subscription lists.

If SUBSCRIPTION_LIST does not sound right please suggest a new name.
Comment 9 Johnny Jacob 2009-05-07 03:34:25 UTC
Created attachment 134144 [details] [review]
Corresponding evolution change. Use SUBSCRIPTION_LIST when called from subscription editor.
Comment 10 Milan Crha 2009-05-07 08:49:17 UTC
Strange. I bet I had somewhere a fix which added some similar flag.
Ahh, bug #413422 , still waiting its review.
Comment 11 Matthew Barnes 2009-05-11 11:14:10 UTC
Looks good to me.  Commit to master.

Wonder if NNTP could take advantage of that flag...
Comment 12 Johnny Jacob 2009-05-13 07:04:36 UTC
Patch committed.

Reassigning to Bharath for owa connector changes.
Comment 13 Bharath Acharya 2009-05-22 06:01:51 UTC
Created attachment 135157 [details] [review]
e-e patch
Comment 14 Johnny Jacob 2009-05-25 05:53:22 UTC
(In reply to comment #13)
> Created an attachment (id=135157) [edit]
> e-e patch
> 
rename gboolean info_fast to subscription_list.

And introduce a new stub flag.
Comment 15 Bharath Acharya 2009-05-26 10:17:13 UTC
Committed to master incorporating the review comments.
http://git.gnome.org/cgit/evolution-exchange/commit/?id=7b927831a34203310a95bf5932844cceef6f92d4