|
From: Brett F. <br...@fo...> - 2003-03-02 23:33:49
|
Ok I've looked at the code and at the JavaMail API. Mind you, I've never=20 used the JavaMail API so I'm no expert! Any ideas? Currently on connect the future is fixed with: Folder f=3Dst.getDefaultFolder(); Which is defined as: *javax.mail.Store* public abstract Folder <../../javax/mail/Folder.html>=20 *getDefaultFolder*() throws MessagingException=20 <../../javax/mail/MessagingException.html> Returns a Folder object that represents the 'root' of the default=20 namespace presented to the user by the Store. Looking at the java documentation I see three(!) other functions that=20 should probably be used in place of getDefaultFolder. (So the code in=20 JWebMail for "searching" folders is redundant? and broken? Why implement=20 something already provided by the API? It also implies that it is=20 impossible to access the shared mailboxes unless it's the default=20 namespace.) *javax.mail.Store* public Folder <../../javax/mail/Folder.html>[] *getPersonalNamespaces*()=20 throws MessagingException <../../javax/mail/MessagingException.html> Return a set of folders representing the /personal/ namespaces for the=20 current user. A personal namespace is a set of names that is considered=20 within the personal scope of the authenticated user. Typically, only the=20 authenticated user has access to mail folders in their personal=20 namespace. If an INBOX exists for a user, it must appear within the=20 user's personal namespace. In the typical case, there should be only one=20 personal namespace for each user in each Store. public Folder <../../javax/mail/Folder.html>[]=20 *getUserNamespaces*(java.lang.String user) throws MessagingException=20 <../../javax/mail/MessagingException.html> Return a set of folders representing the namespaces for |user|. The=20 namespaces returned represent the personal namespaces for the user. To=20 access mail folders in the other user's namespace, the currently=20 authenticated user must be explicitly granted access rights. For=20 example, it is common for a manager to grant to their secretary access=20 rights to their mail folders. public Folder <../../javax/mail/Folder.html>[] *getSharedNamespaces*()=20 throws MessagingException <../../javax/mail/MessagingException.html> Return a set of folders representing the /shared/ namespaces. A shared=20 namespace is a namespace that consists of mail folders that are intended=20 to be shared amongst users and do not exist within a user's personal=20 namespace. Brett Jose Antonio Becerra Permuy wrote: >El Dom 02 Mar 2003 16:20, GCS escribi=F3: > =20 > >> Could you sort the jokes folder to a dummy user? So privacy won't be >>affected, only john and ronin also have to add this dummy user's mailbo= x. >> =20 >> > > Yes, but both users will have the same privileges, and I want that only= user=20 >"ronin" can add jokes to the "jokes" folder :-) > > =20 > >> Good luck! I am just started with my second degree last year, I know >>what does it mean. :-) >> =20 >> > > Thanks! :-) > > =20 > >>>If you or somebody else can take a look to this >>>problem, I will be very grateful >>> =20 >>> >> I am going to, I hope the timeframe will not be long. >> =20 >> > > Thank you very much! > Regards. > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Jwebmail-devel mailing list >Jwe...@li... >https://lists.sourceforge.net/lists/listinfo/jwebmail-devel > =20 > |