Results 1 to 2 of 2

Thread: Get new mail subject using SOAP?

Hybrid View

  1. #1
    Join Date
    May 2007
    Bangkok, Thailand
    Rep Power

    Default Get new mail subject using SOAP?


    I'm very new to Zimbra. I've checked all the Zimbra's documents those I can find but still have no idea how to do this. So, I come to here and hope this is a good place to ask my question.

    I'm trying to integrate the instant messaging server - OpenFire with the Zimbra. My 1st assignment is to get the OpenFire send a message to it's client when there's a new mail (or upcoming event) go into user's mailbox.

    Since I can successfully config the OpenFire server to authenticate the users aginst Zimbra's LDAP server, I suppose that it should not have any technical issue about the authentication. My next step come to the question that how can I retrive the status of the user mailbox, to check if there is any new mail available.

    My idea is to create a SOAP client as a plug-in for the OpenFire server and periodically request Zimbra server the mailbox (and calendar) information. If there is any up-coming event or incoming mail available, the plug-in will immediately send the message to the IM client.

    However, from the documents, I can see only the information about SOAP message to retrieve information from the Calendar. But nothing about the "new mail", except the mailbox searching.

    My current question should be: are there any approach that better than just make a mail searching for the new one? Any reading is also welcome.


  2. #2
    Join Date
    Aug 2005
    Rep Power

    Default Polling via NoOp

    Easiest is probably to connect to the Zimbra system and use the SOAP notification system to receive new message notifications. When the user authenticates, a session ID is returned in the SOAP header. If you then just send one NoOp request every N minutes (make sure N < 5), each response will include the set of deleted, modified, and created items in the user's mailbox. (5.0 will allow you to get immediate notifications by doing a "hanging NoOp", which blocks until either 5 minutes elapses or something changes in the mailbox.)

    Other ways to do this include becoming a sync client and sending Sync requests, but the abovementioned NoOps are lightweight and simple. That's how the toasters work.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Problems with port 25
    By yogiman in forum Installation
    Replies: 57
    Last Post: 06-13-2011, 01:55 PM
  2. Replies: 7
    Last Post: 02-03-2011, 06:01 AM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 08:24 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