[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-devel
Subject:    Re: [SM-DEVEL] Re: Auto migration of file prefs and abooks to a
From:       "Tomas Kuliavas" <tokul () users ! sourceforge ! net>
Date:       2005-07-07 17:48:20
Message-ID: 33770.213.190.44.96.1120762110.squirrel () internet ! eik ! lt
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>> I can't find it but I'm sure I read about this.
>>>
>>> Is it true or not that if you have been using files for userprefs and
>>>  addressbook that if you give squirrelmail a database table to now
>>> use that it will move all the data into the table?
>>>
>>> If not - would this not be rather sensible?
>>>
>>> I understand that this is DEFINTIELY the case for a hashed data_dir -
>>> if you change the hashing level then new files are moved into the
>>> correct place automatically.
>>>
>>> It wouldn't be too hard to see if that particular user has any
>>> entries in the database table, if not look for a file in the data_dir
>>> and if not then load in the defaults. Same for both abook and prefs.
>>>
>>> Perhaps deleting the old file or perhaps not - some might want the
>>> old info preserved whilst they make sure the db system works ok.
>>>
>>> In the event the above is not the case and is not going to be
>>> implemented anytime soon in stable (I'm on the 1.4.4 branch) does any
>>> helpful person out there have a script that will migrate the data
>>> into the db? Hopefully one that will avoid overwriting, creating
>>> duplicates etc?
>>
>>
>> it would require loading two conflicting function libraries.
>
> Is it not worth making the libraries non-conflicting? Or are you trying
> to avoid the overhead from having a program that can handle files and
> databases at the same time? surely it's not that big a deal - most of the
> time the DSNs are not set so the db stuff can be ignored. Once the DSNs
> are set it will eventually come down to a quick check of the data_dir to
> see if it is empty. If not then it slurps it up. From then on you are
> looking at one extra check upon login.

libraries use same function names. functions/file_prefs.php and
functions/db_prefs.php

We would have to rewrite handling of the preferences, rearrange functions
or dublicate some code in db_prefs.

- -- 
Tomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAkLNeP4ACgkQ+cs+8aEMofDnSACfbAalmVi6IWmDhIeNCJl4xLZQ
yGMAoIvquClrcC+hGnOmzaMVHF/gdzuc
=VIKH
-----END PGP SIGNATURE-----


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
--
squirrelmail-devel mailing list
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
List Address: squirrelmail-devel@lists.sourceforge.net
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.devel
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=7139
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic