Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-2010, 01:09 PM
Van Van is offline
Beginner Member
 
Posts: 1
Default GetImportStatusResponse Messages for Multiple External Accouts

Hi,

I'm developing a mail client that uses and connects to Zimbra using Soap and/or Json. I have a problem when a particular user account has more than one secondary accounts(like Gmail or Hotmail), aside from the user's primary account. When a user triggers to retrieve/check for new messages from his secondary email, I send an ImportDataRequest and then GetImportStatusRequest Soap message to Zimbra. The problem comes when he triggers the ImportDataRequest for a first account, like Gmail, and then immediately triggers ImportDataRequest for another account, like hotmail, just before GetImportStatusRequest is sent for the Gmail one. So when GetImportStatusRequest is finally sent it will return the sample response below, but as you can see both of those external account's "isRunning" parameter are true, but each of the messages/conversation doesn't have any indication as to which email accounts they belong to. Can I ask how I'll be able to figure that out?

Thank you,
Van


{ "Body" : { "GetImportStatusResponse" : { "_jsns" : "urn:zimbraMail",
"pop3" : [
{ "id" : "f5aee06b-6100-4f63-810e-dff9e874f611",
"isRunning" : true
},
{ "id" : "ac595eda-13ab-43b8-8717-44bc7f45f9c7",
"isRunning" : true
}
]
} },
"Header" : { "context" : { "_jsns" : "urn:zimbra",
"change" : { "token" : 9796 },
"notify" : [ { "created" : { "c" : [ { "d" : 1277999123000,
"e" : [ { "a" : "rapextemail@gmail.com",
"d" : "rapextemail",
"p" : "rapextemail rapextemail",
"t" : "f"
} ],
"f" : "u",
"id" : "-1933",
"n" : 1,
"su" : "Test50"
},
...
],
"m" : [ { "cid" : "-1933",
"d" : 1277999123000,
"e" : [ { "a" : "rapextemail@gmail.com",
"d" : "rapextemail",
"p" : "rapextemail rapextemail",
"t" : "f"
} ],
"f" : "u",
"id" : "1933",
"l" : "1500",
"rev" : 9789,
"s" : 629,
"su" : "Test50"
},
...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.