From: Jean-Jacques de J. <jea...@ga...> - 2009-02-03 10:42:13
|
2009/2/1 Paul Lesniewski <pa...@sq...> > > On Sat, Jan 31, 2009 at 10:30 PM, Jean-Jacques de Jong > <jea...@ga...> wrote: > > I'd like to direct SM to a specific folder just by typing an URL with > > the folder name in it. Something like: > > http://server/squirrelmail/?mailbox=.X.Y.Z.foldername. > > If the user hasn't logged in yet, he should be directed to the login > > screen and then to the folder. > > You might start by looking at the Startup Folder plugin. It requires > a prior user setting for the folder to load up, but you could try to > take the URL that hits the login page and if it contains some special > query argument of your choosing with a folder name in it, your plugin > can do the same thing as Startup Folder, but in a dynamic fashion. This plugin should indeed be able to get me there. I probably just need to assign a specific variable with my folder name rather than the name stored in the user's configuration file. I see you are one of the developers of this plugin. I am alas not familiar with the plugin architecture and other internals of SM, and only an amateur in PHP coding. In particular, I am not sure what file the predefined link should call with the variable that has the folder name in it, i.e. http://server/squirrelmail/what-file-do- i-put-here.php?startupfolder=myfolder (In my previous attempts to tweak the code, my issue was that the variable containing the folder name had to be passed between several files in an order that was not so obvious.) Do you have any guidance? We can forget the login issue, assuming I tell my users that they first need to login before they try to use the links containing the folder name. Thanks, JJJ |