How do you access another users store if you have been given rights to the mailbox?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Matt_Silay
Posted On:   Tuesday, April 20, 2004 10:34 AM

If you have access to a particular mailbox can you gain access to it with your username and password? I can get into my mailbox using: Properties props = new Properties(); // Get session Session session = Session.getInstance(props, null); URLName urlname = new URLName("imap", "host", -1, "INBOX", "username", "password"); Folder uf = session.getFolder(urlname); if(uf.exists()){ System.out.println("found folder"); } I can also get to all the public folders using: Folder[] pub = store.getSharedNamespaces(); How would I go about accessing another mailbox that I have ownership rights of   More>>

If you have access to a particular mailbox can you gain access to it with your username and password?

I can get into my mailbox using:

Properties props = new Properties();


// Get session


Session session = Session.getInstance(props, null);


URLName urlname = new URLName("imap", "host", -1, "INBOX", "username", "password");


Folder uf = session.getFolder(urlname);


if(uf.exists()){


System.out.println("found folder");


}





I can also get to all the public folders using:

Folder[] pub = store.getSharedNamespaces();



How would I go about accessing another mailbox that I have ownership rights of with my same username/password combo?    <<Less
About | Sitemap | Contact