Results 1 to 6 of 6

Thread: [SOLVED] Get EMAIL details with SOAP in JAVA

  1. #1
    rkmorgan is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    8

    Default [SOLVED] Get EMAIL details with SOAP in JAVA

    Hello!

    I'm writing Java application to get email details like: body, from, to etc.
    I starting my program with ZClient.
    I get from Zimbra server authToken, sessionID and I have a email ID which I
    want to read.
    So if You have any Java code or examples for get email details I'll be glad.

    Best regards
    rkmorgan

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    You should be able to find examples of using ZMailbox.getMessage() in several places in the Zimbra source code. ZMailboxUtil uses it to enable zmmailbox getMessage, the GetMessageTag in ZimbraTagLib uses it to do message display in the lite client, and there are a few unit tests that also use it.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    rkmorgan is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    8

    Default

    Thanks dkarp for answer. I downloaded Zimbra Open Source. I checked classes but I did not find example - generally definition of classes in *.java files.
    It is very important for me. If You can help me find example - I'll be glad.

    Thank's
    rkmorgan

  4. #4
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Did you download the ZCS source? It's available on sourceforge.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    rkmorgan is offline Junior Member
    Join Date
    Aug 2007
    Posts
    9
    Rep Power
    8

    Default

    Hi dkarp!!

    Yes I downloaded Zimbra source code today.
    I'm checking classes from com.zimbra.cs.mailbox package:
    1. Mailbox.class
    2. Message.class

    I looked to constructors, functions. I found function getMessageByID() in
    Mailbox.class. But I can not initialize Mailbox object.

    I'm thinking about that situation. As I wrote - I have authToken, sessionID,
    messageID - maybe in Zimbra source codes is example of use it.

    If You have any ideas - please tell me.

    Thanks
    rkmorgan

  6. #6
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    You're looking at the wrong classes.

    Look at com.zimbra.cs.zclient.ZMailbox.java and the callsites into it that I listed earlier.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  2. upgrade to 4.0.3 antispam does'nt work
    By lucanannipieri in forum Administrators
    Replies: 14
    Last Post: 11-07-2006, 03:56 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
  •