linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH obexd 1/8] MAP Tracker: Fix folder and path handling
@ 2011-09-02  8:57 Bartosz Szatkowski
  2011-09-02  8:57 ` [PATCH obexd 2/8] MAP Tracker: Fix memory issue in folder listing Bartosz Szatkowski
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Bartosz Szatkowski @ 2011-09-02  8:57 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Bartosz Szatkowski

---
 plugins/messages-tracker.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/plugins/messages-tracker.c b/plugins/messages-tracker.c
index 43321f6..eebfca3 100644
--- a/plugins/messages-tracker.c
+++ b/plugins/messages-tracker.c
@@ -124,13 +124,13 @@ static void create_folder_tree()
 {
 	struct message_folder *parent, *child;
 
-	folder_tree = create_folder("/", NULL);
+	folder_tree = create_folder("/", "FILTER (!BOUND(?msg))");
 
-	parent = create_folder("telecom", NULL);
+	parent = create_folder("telecom", "FILTER (!BOUND(?msg))");
 	folder_tree->subfolders = g_slist_append(folder_tree->subfolders,
 								parent);
 
-	child = create_folder("msg", NULL);
+	child = create_folder("msg", "FILTER (!BOUND(?msg))");
 	parent->subfolders = g_slist_append(parent->subfolders, child);
 
 	parent = child;
@@ -217,7 +217,10 @@ int messages_set_folder(void *s, const char *name, gboolean cdup)
 									NULL);
 	g_free(tmp);
 
-	newabs = g_build_filename("/", newrel, NULL);
+	if (newrel[0] != '/')
+		newabs = g_build_filename("/", newrel, NULL);
+	else
+		newabs = g_strdup(newrel);
 
 	session->folder = get_folder(newabs);
 	if (session->folder == NULL) {
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-09-27  9:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-02  8:57 [PATCH obexd 1/8] MAP Tracker: Fix folder and path handling Bartosz Szatkowski
2011-09-02  8:57 ` [PATCH obexd 2/8] MAP Tracker: Fix memory issue in folder listing Bartosz Szatkowski
2011-09-02  8:57 ` [PATCH obexd 3/8] MAP Tracker: Add support for DBus connection Bartosz Szatkowski
2011-09-06 13:44   ` Johan Hedberg
2011-09-02  8:57 ` [PATCH obexd 4/8] MAP Tracker Add basic support for messages listing Bartosz Szatkowski
2011-09-02  8:57 ` [PATCH obexd 5/8] MAP Tracker Add filter support in " Bartosz Szatkowski
2011-09-02  8:57 ` [PATCH obexd 6/8] MAP Tracker: Add support for pulling messages Bartosz Szatkowski
2011-09-02 13:36   ` [PATCH " Bartosz Szatkowski
2011-09-02  8:57 ` [PATCH obexd 7/8] MAP Tracker: Add abort support in folder listing Bartosz Szatkowski
2011-09-02  8:58 ` [PATCH obexd 8/8] MAP Tracker: Refactor session struct Bartosz Szatkowski
2011-09-27  9:46 ` [PATCH obexd 1/8] MAP Tracker: Fix folder and path handling Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).