• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to get the list of folders in hotmail using JavaMail

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I am writing one simple email client and trying to access the hotmail through the java mail client.
I succeeded to login to hotmail account, but I am getting only INBOX folder.
I want to access the list of folders in Hotmail, like the user created and the default ones for ex. Sent, Draft etc.
One more issue I am facing is unable to use Authenticator to use with POP3. In other words, I want to use the SSL for pop3 connection to login to hotmail.
Below one is my program which is used to login and displays that it has only 1 folder i.e INBOX and when I check for other folder whether it exists or not, it returns false.


If any one knows how to get the list of folders in an email account using pop3, please help me.
Thank you.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. POP3 doesn't support more than one folder per user - that's something done by the webmail software.

What is the relationship between using an authenticator (which is used for the password) and using SSL?
 
Sanjeev Debnath
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply.

If POP3 cannot retrieve more than one folder, then which protocol I have to use? I heard about IMAP but haven't tried yet.
I assumed to authenticate the login by using Authenticator.
And I read in many blogs for making any pop3 request, we need to make the SSL flag to true.
Thats what I wanted to ask, that how we can I set the flag isSSL property to true? I noticed this flag in the debug information.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If POP3 cannot retrieve more than one folder, then which protocol I have to use? I heard about IMAP but haven't tried yet.


IMAP supports folders, but I'm not sure if Hotmail supports IMAP. Most free webmail solutions don't.

And I read in many blogs for making any pop3 request, we need to make the SSL flag to true.


SSL is an optional feature. Whether or not it's required depends entirely on the host you're connecting to, not the protocol used. Check the online help for what's required by Hotmail.

You should read through Sun's extensive JavaMail FAQ, which has an entry on how to connect to Hotmail: http://java.sun.com/products/javamail/FAQ.html#hotmail
 
Sanjeev Debnath
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf,

I searched on the net for IMAP support on Hotmail and got to know that Hotmail only support POP3 and SMTP

So the conclusion is that I will not be able to access other folders in hotmail.

Thanks for the explanation and help
 
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic