> I use squirrelmail remotely and locally.
>
> Locally, network bandwidth is not a problem and I'd like to display 100 or
> more mail items at a time (I mean the subject lines in the main page)
>
> But when I'm remote, I prefer the setting to be more like 20 or 30 and
> then just page through as required.
>
> A suggestion I'd like to make is to allow different preferences based on
> whether or not the client is on the same network as the squirrelmail
> server.
>
> What do other people think?

It'd be an... /interesting/ feature.  Not sure how many people would find
it useful.  It'd require a separation of user prefs, and address book
locations to handle (unless you're storing addresses in db/ldap), along
with a number of changes to store the local, and remote prefs differently.
 I guess if you  created your own prefs back end, it'd probably be okay,
you could handle everything in there.  For example,
functions/db_prefs.php... Do a simple check, this is pseudo code as I'm at
work, and cannot really check...

Any calls to things like $db->getKey that contains the username, you'd do
something like this:

  if ((first 3 octets of remove_ip) != (first 3 octets of local ip)) {
     return $db->getKey($username . '_remote', $string, $default);
  } else {
     return $db->getKey($username, $string, $default);
  }

That'd probably do it (example, and untested)... you'd have to repeat
something similar in the setPref function, and removePref function too.

Now if you're using file based prefs, the changes would probably be a
little easier, you can probably handle all the changes inside the function
"cachePrefValues", you'd use a similar kind of comparision as above around
anything that sets the file name/location.

-- 
Jonathan Angliss
<[EMAIL PROTECTED]>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
--
squirrelmail-users mailing list
Posting Guidelines: 
http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: [email protected]
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to