Results 1 to 5 of 5

Thread: [SOLVED] Question about query grammer

  1. #1
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    7

    Default [SOLVED] Question about query grammer

    I'm trying to get all conversations in a folder. I'm using the query

    Code:
    "in:<foldername>"
    It works for most of the folders but fails when it encounters a subfolder. For example, if I have a subfolder Test under Inbox (Inbox/Test)

    Code:
    in:"Inbox"
    works but

    Code:
    in:"Test"
    fails. I'm thinking the best way would be to use folder ids instead of folder names (right?).

    Can someone help me with the query to get all entries in a folder using folder id not folder name?

    Any help would be appreciated.

    Thanks in advance.

    -t

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Quote Originally Posted by tsx View Post
    I'm trying to get all conversations in a folder. I'm using the query

    Code:
    "in:<foldername>"
    It works for most of the folders but fails when it encounters a subfolder. For example, if I have a subfolder Test under Inbox (Inbox/Test)

    Code:
    in:"Inbox"
    works but

    Code:
    in:"Test"
    fails. I'm thinking the best way would be to use folder ids instead of folder names (right?).
    Nope. Just try
    Code:
    in:"Inbox/Test"
    There is a way to search by folder ID, but this way is clearer.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    7

    Default

    Thanks for the quick reply.

    The reason I was considering folder search by ID was because I only have a Soap element. I don't have the complete path. Is there a way to get the complete path from an element? If not, I guess I can create one.

    Just to put things in context, I'm try to collect all the folders and conversations using combination of Soap and Java.

    -t

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    GetFolderRequest will give you the entire folder hierarchy. SearchRequest can then get you the messages or conversations that cross that folder.

    If you really want to search by folder ID, the term is inid:folderID.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    7

    Default

    That did the trick. Thanks much.

    BTW, I'm doing exactly the same way you suggested. GetFolderRequest then SearchRequest. I'm parsing GetFolderResponse for elements and I'm using those elements in the SearchRequest query. I might be missing something but I didn't see any attribute/element within folder elements that had complete path.

    Thanks again.

    -t

Similar Threads

  1. Replies: 7
    Last Post: 06-08-2008, 01:54 PM
  2. zimbra mobile inbox query override.
    By phingers in forum Zimbra Mobile
    Replies: 0
    Last Post: 02-01-2008, 06:40 AM
  3. Change the default mail sync query to a phone
    By phingers in forum Zimbra Mobile
    Replies: 1
    Last Post: 07-31-2007, 08:46 PM
  4. Multiple Domains Question
    By kristiaan_d in forum Administrators
    Replies: 2
    Last Post: 03-14-2007, 04:38 AM
  5. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •