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 10-09-2007, 07:50 AM
Junior Member
 
Posts: 9
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
Reply With Quote
  #2 (permalink)  
Old 10-09-2007, 09:25 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 10-10-2007, 08:04 AM
Junior Member
 
Posts: 9
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
Reply With Quote
  #4 (permalink)  
Old 10-10-2007, 12:03 PM
Zimbra Employee
 
Posts: 1,434
Default

Did you download the ZCS source? It's available on sourceforge.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 10-11-2007, 08:02 AM
Junior Member
 
Posts: 9
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
Reply With Quote
  #6 (permalink)  
Old 10-11-2007, 09:05 AM
Zimbra Employee
 
Posts: 1,434
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!
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.