Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access the calendar using Javamail

Alex Adam
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to access the calendar folder using the javamail API.
I am using IMAP and I am able to get my mail from the inbox, in a Message[].
The only way I can get some partial info about the calendar folder is by
calling store.getFolder("Calendar"). But the problem with this is that I get my appointments in a Message[], as if they were e-mails.This way I am able to get info such as the subject but not about the start date, and end dates.
Basically the most important thing besides the Subject(which I can get)
are the start/end dates of the appointment but I am not able to get the information.
The thing I tried were:
- get all headers from the appointment(where the appointment is a Message class)
- get all system and user flags
The result is that I am still not able to get the dates.
Is there a way?

Thanks , Alex
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic