Results 1 to 4 of 4

Thread: Unable to get all emails of Zimbra User

  1. #1
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    7

    Smile Unable to get all emails of Zimbra User

    Hi,

    I am trying to get all emails for a user using SOAP APIs but I get a http 500 error. Can somebody please look and tell me if I am doing something wrong or atleast point me in the direction that I can looking to debug this? Here is the SOAP call I am making

    wout.write("<?xml version='1.0' encoding='windows-1250'?>");
    wout.write("<soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope'>");
    wout.write("<soap:Header>");
    wout.write("context xmlns='urn:zimbra'>");
    wout.write("<userAgent xmlns='' name='ZimbraWebClient - IE7 (Win)'/>");
    wout.write("<sessionid xmlns='' id='111..' />");
    wout.write("<change xmlns='' token='20..' type='new'/>");
    wout.write("<authToken xmlns=''>0_787...</authToken>");
    wout.write("</context>");
    wout.write("</soap:Header>");
    wout.write("<soap:Body>");
    wout.write("<SearchRequest xmlns='urn:zimbraMail' sortBy='dataDesc' offset='0' limit='0' types='conversation'>");
    wout.write("<tz xmlns='' id='(GMT-08.00) Pacific Time (US &amp; Canada)'/>");
    wout.write("<locale xmlns=''>en_US</locale>");
    wout.write("<query xmlns=''>in:inbox</query>");
    wout.write("</SearchRequest>");
    wout.write("</soap:Body>");
    wout.write("</soap:Envelope>");

    Thanks
    Avi

  2. #2
    Join Date
    Sep 2008
    Posts
    4
    Rep Power
    7

    Default Re: Unable to get all emails of Zimbra User

    Could anybody respond to this? If you need more info please me know

  3. #3
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    7

    Default

    Something like:

    <SearchRequest xmlns="urn:zimbraAdmin"
    types = "message"
    domain = ""
    >
    <query>in:inbox</query>
    </SearchRequest>

    Does the trick.

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

    Default

    Quote Originally Posted by avinashp22 View Post
    wout.write("context xmlns='urn:zimbra'>");
    Missing an open angle-bracket there.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 05:42 PM
  2. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 09:55 AM
  3. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  4. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 12:16 PM
  5. Another installation ldap problem
    By genesis in forum Installation
    Replies: 10
    Last Post: 12-24-2005, 07:02 AM

Posting Permissions

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