Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get message body #11

Open
EyalEi opened this issue Jan 26, 2014 · 5 comments
Open

Get message body #11

EyalEi opened this issue Jan 26, 2014 · 5 comments

Comments

@EyalEi
Copy link

EyalEi commented Jan 26, 2014

I need to get the body of my messages, but message.getContentText() gives an error: java.lang.UnsupportedOperationException: This GmailMessage implementation does not provide getContentText()

I'm using version 0.5 snapshot, and instantiating an RssGmailClient. When trying an ImapGmailClient, as suggested in one of the issues here, the error is java.lang.NoClassDefFoundError: javax/mail/search/SearchTerm

@EyalEi
Copy link
Author

EyalEi commented Jan 28, 2014

Can anyone please respond to any of the 3 issues I posted two days ago? If the API is unable to handle them I should know about it.

Thank you!

@spajus
Copy link
Owner

spajus commented Jan 28, 2014

@EyalEi - gmail4j is not actively maintained, there is no active community to give you quick response. I don't have time for that either - haven't been using gmail4j for years. What you can do is answer all the questions yourself - because it's open source and you can just read the code, build it yourself, and find out how everything works.

@EyalEi
Copy link
Author

EyalEi commented Jan 28, 2014

Thanks for the reply, spajus. That's too bad, the API looks so nice.

Is there an API that does what I need? Can you recommend something?

Thanks again!

@strusewych
Copy link
Contributor

You'll have to use the ImapGmailClient for that functionality. Unless you build the project from source the method you'll need to use to grab emails with is getUnreadEmails()

@EyalEi
Copy link
Author

EyalEi commented Jan 29, 2014

I ended up using the standard javax.mail. It does everything I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants