Commit Graph

323 Commits

Author SHA1 Message Date
sspitzer%netscape.com
96c645b1d7 very, very tired of seeing all these printfs.
git-svn-id: svn://10.0.0.236/trunk@48260 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:38:24 +00:00
racham%netscape.com
b6eb72b794 Fixing the performance bug 13555 to minimize the number of registry operations. Moved major printfs from DEBUG_profile.
git-svn-id: svn://10.0.0.236/trunk@48227 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 23:35:09 +00:00
sspitzer%netscape.com
bac6cfec5e make it so the user has there 4.x bookmarks after migration.
git-svn-id: svn://10.0.0.236/trunk@48212 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:32:52 +00:00
briano%netscape.com
6d19b52ee2 Removed the 3 test-tab XUL files that don't exist.
git-svn-id: svn://10.0.0.236/trunk@48210 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:20:27 +00:00
sspitzer%netscape.com
a1aa1c79b4 give the profile manager / installer window a title.
it would be good if the first window the users sees has a title, no?


git-svn-id: svn://10.0.0.236/trunk@48204 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:22:27 +00:00
sspitzer%netscape.com
0765c37463 the bookmarks service is looking for bookmarks.html, not bookmarks.htm
now, your bookmarks get migrated!
(unix finally wins a file name battle, but windows still wins the war.)


git-svn-id: svn://10.0.0.236/trunk@48202 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:12:57 +00:00
sspitzer%netscape.com
7c99ad95e0 rename 4.x bookmarks file after migration to bookmarks.htm for all platforms.
rewrite code so I could use it to rename cookies files and bookmarks file
with the same method.


git-svn-id: svn://10.0.0.236/trunk@48201 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:00:12 +00:00
gayatrib%netscape.com
70c92c6241 This file is not required for profile ui
git-svn-id: svn://10.0.0.236/trunk@48078 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:30:23 +00:00
neeti%netscape.com
979fb58aef *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@48076 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:28:56 +00:00
neeti%netscape.com
9a0fa2615b moved bookmarks.html to defaults/profile
git-svn-id: svn://10.0.0.236/trunk@48073 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:26:54 +00:00
sfraser%netscape.com
110b76f1d0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48066 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:20:53 +00:00
gayatrib%netscape.com
bdf2b00c7c adding locale dir to makefile
git-svn-id: svn://10.0.0.236/trunk@48060 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:17:28 +00:00
gayatrib%netscape.com
f114a4f51f moving entities into dtds
git-svn-id: svn://10.0.0.236/trunk@48055 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:16:06 +00:00
gayatrib%netscape.com
d95e6e3987 makefile for dtds
git-svn-id: svn://10.0.0.236/trunk@48040 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:05:54 +00:00
gayatrib%netscape.com
b7ec5e57d8 dtds for profile manager ui
git-svn-id: svn://10.0.0.236/trunk@48039 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:05:04 +00:00
sspitzer%netscape.com
4509536a7e close the stream.
git-svn-id: svn://10.0.0.236/trunk@47967 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:47:46 +00:00
dveditz%netscape.com
e0efc09bf1 match buffered i/o registry change in XP_MAC section
git-svn-id: svn://10.0.0.236/trunk@47942 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:00:55 +00:00
sspitzer%netscape.com
c3877c99de turn on migration for the mac. note, it doesn't work just yet.
also, for mac, like unix, don't automigrate if there is only one profile.
this make it hell to debug.  once it works, we can make it automigrate if
we only have one profile if we want.


git-svn-id: svn://10.0.0.236/trunk@47858 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:01:45 +00:00
sspitzer%netscape.com
2547d3df7b propagate errors. right now, -installer doesn't work
on the mac.  now, we through up and and tell the user, which is better than crashing.  I'm still working on getting it to work on the Mac.


git-svn-id: svn://10.0.0.236/trunk@47857 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:00:21 +00:00
sspitzer%netscape.com
17201cb709 add a scriptable version of GetCurrentProfileDir to the nsIProfle interface called GetCurrentProfileDirFromJS
eventually, the non-scriptable interface will go away, but I don't have time do that yet.  slamm is using this in his sidebarOverlay.js


git-svn-id: svn://10.0.0.236/trunk@47828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:36:27 +00:00
cls%seawood.org
0598826d76 Linux only: Removed -D_BSD_SOURCE from DEFINES as it is unnecessary now that __STRICT_ANSI__ is set in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47789 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:54:18 +00:00
sspitzer%netscape.com
ca07ec2ace increase the changes of -installer working on mac tomorrow, by not checking
if there is enough space before copying.

once we get -installer working on the mac, we'll turn this code back on.


git-svn-id: svn://10.0.0.236/trunk@47771 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 10:41:13 +00:00
sspitzer%netscape.com
adb9a35445 rewrite to not user GetCString(). read the comments in nsFileSpec.cpp: "Using it guarantees bugs on Macintosh"
clean up code.  wrap all printfs with #ifdef DEBUG_profile


git-svn-id: svn://10.0.0.236/trunk@47764 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:17:51 +00:00
gayatrib%netscape.com
669a9eb3d5 Removing tabs that are not supported yet
git-svn-id: svn://10.0.0.236/trunk@47692 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:39:20 +00:00
gayatrib%netscape.com
c2bfd297a8 Fixing the finish button problem and removing tabs that are not supported yet
git-svn-id: svn://10.0.0.236/trunk@47691 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:38:40 +00:00
gayatrib%netscape.com
1a633df9c0 fixing bug 13899
git-svn-id: svn://10.0.0.236/trunk@47656 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:23:39 +00:00
alecf%netscape.com
16d0a4f465 fix lots of leaks in profile code
use nsCOMPtr and nsXPIDLCString where I found leaks


git-svn-id: svn://10.0.0.236/trunk@47543 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 06:07:33 +00:00
sspitzer%netscape.com
58ec26b91f stupid cut and paste error.
git-svn-id: svn://10.0.0.236/trunk@47539 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:36:53 +00:00
sspitzer%netscape.com
e66162265a add support for the PROFILE_NAME PROFILE_HOME environment variables, for multiple profile migration on UNIX
git-svn-id: svn://10.0.0.236/trunk@47536 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 05:21:18 +00:00
sspitzer%netscape.com
74a36d75c1 rename the mail filter rule files (if we need to, and if we can) when we do the migration.
rename the cookie file (if we need to) so that if you run -installer,
you cookies will be migrated.
Change DoTheCopy() to be DoTheCopyAndRename(), which takes additional parameters
to rename files as it copies them.
remove unnecessary code.
#define constants to be clean.
add a stub for RenameAndMoveFilterFiles() with comments on what we need to do
for the mac.


git-svn-id: svn://10.0.0.236/trunk@47519 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 04:15:27 +00:00
briano%netscape.com
c38c8b4426 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47512 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 03:00:30 +00:00
ramiro%netscape.com
e324fbd024 Cleanup the neckutil linking thing.
git-svn-id: svn://10.0.0.236/trunk@47500 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 02:15:11 +00:00
sspitzer%netscape.com
6d42b44f38 only automigrate (when we have one profile) on windows.
git-svn-id: svn://10.0.0.236/trunk@47333 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 11:12:10 +00:00
sspitzer%netscape.com
547c4b6472 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@47330 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 10:43:49 +00:00
sspitzer%netscape.com
6d0567ef31 turn on migration for the mac. note, it doesn't work just yet.
also, for mac, like unix, don't automigrate if there is only one profile.
this make it hell to debug.  once it works, we can make it automigrate if
we only have one profile if we want.


git-svn-id: svn://10.0.0.236/trunk@47329 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 10:23:08 +00:00
sspitzer%netscape.com
d9b84fefc7 the pref migrator iid's look very suspicous, so regenerate them.
follow convention:
rename nsPrefMigrationIIDs.h to nsPrefMigrationCIDs.h
rename NS_IPrefMigration_IID -> NS_PREFMIGRATION_CID
rename kFoo_CID to kFooCID
use the NS_GET_IID macro


git-svn-id: svn://10.0.0.236/trunk@47326 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 09:41:41 +00:00
sspitzer%netscape.com
7fabdfae5b fix for #13704.
also, instead of just checking that ".msf" or ".snm" or ".summary" appears in th
e file name, we now check if the filename *ends* with ".msf", ".snm" or ".summar
y".


git-svn-id: svn://10.0.0.236/trunk@47226 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 00:08:33 +00:00
sspitzer%netscape.com
9532af4dd5 fix profile migration on windows (and probably mac.)
on UNIX, "mail.directory" is always set.
on windows, it may be set to ""
add the PL_strlen test to tree "" as not being set, so we assume the default 4.x location, which is what we want.


git-svn-id: svn://10.0.0.236/trunk@47160 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 20:38:23 +00:00
sspitzer%netscape.com
f07e6429de clean up a bunch of code by using nsCOMPtrs and the almighty NS_WITH_SERVICE macro.
git-svn-id: svn://10.0.0.236/trunk@47108 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 07:37:05 +00:00
sspitzer%netscape.com
2cb500a104 if GetDirFromPref() failed, we use the old profile directory path to determine the old directory. save that in the premigrated version of the pref, because we will need that during actual pref migration. if we don't do this, premigrated.foo is left blank, because foo was not set.
git-svn-id: svn://10.0.0.236/trunk@47107 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 07:21:36 +00:00
sspitzer%netscape.com
de6a947863 added files: mozilla/profile/pref-migrator/public/nsIPrefMigration.idl
git-svn-id: svn://10.0.0.236/trunk@47101 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 05:52:26 +00:00
sspitzer%netscape.com
5d804074e0 XPIDL-ify nsIPrefMigration, and the necessary changes that go along with that.
git-svn-id: svn://10.0.0.236/trunk@47100 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 05:52:18 +00:00
sspitzer%netscape.com
e7bad20848 new files resulting from XPIDL-ifying nsIPrefMigration.
NOT PART OF THE BUILD YET.


git-svn-id: svn://10.0.0.236/trunk@47095 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 04:23:31 +00:00
sspitzer%netscape.com
a1f18c5058 use #defines where possible to clean up the code, reduce the risk of errors,
and make the code more portable.
create directories with 00700 permissions, not PR_RDWR.  On UNIX, PR_RDWR would
create directories with d______r__. 00700 gives us drwx______ which is want we
want.  change the signature of ProcessPrefs() so that we just return the result,instead of
setting an out parameter.  remove ComputeMailPath(), it is unused.
instead of doing PR_MALLOC in the beginning, set char *'s to nsnull, and use
PR_smprintf() and CopyCharPref() to allocate the memory.  (the PR_FREEIF()s
are still correct, though.)
use NS_SUCCEEDED() and NS_FAILED() instead of comparing against NS_OK directly.
don't execute the GetSizes(), GetDriveName() and CheckForSpace() methods
on UNIX, as they are not UNIX friendly.  hold onto the nsIFileSpec that points
to the prefs file, so we can save it when we are done using SavePrefFileAs()
Change the signature of GetDirFromPref() and GetDriveName().  The out parameters
were char *'s.  they need to be char **'s for them to work.
Change GetDirFromPref() to also take the oldProfilePathStr and the new directory leaf name.
These are used on UNIX, where we to do some magic because in
4.x the directory structure on UNIX was much different that on Mac and Windows
fix leak in GetDriveName().  we were leaking *driveName in the loop.
initialize variables.
add some printfs to remind me that there is more todo.
fix various comments to reflect the new signatures to methods.
check parameters of GetDirFromPref() and GetDriveName()


git-svn-id: svn://10.0.0.236/trunk@47082 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 00:10:13 +00:00
cls%seawood.org
d211a400e8 Fix my bustage using -D_BSD_SOURCE
git-svn-id: svn://10.0.0.236/trunk@47066 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 16:41:14 +00:00
sspitzer%netscape.com
ed1a50cccb set up prefs with the new prefs.js file that we copied over from the 4.x world
git-svn-id: svn://10.0.0.236/trunk@47002 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:39:03 +00:00
sspitzer%netscape.com
86f8fb6a32 remove obsolete code. define PREF_MAIL_SERVER_TYPE to avoid errors, like using mail.server.type instead of mail.server_type.
git-svn-id: svn://10.0.0.236/trunk@46997 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:13:41 +00:00
sspitzer%netscape.com
846f73d4a4 more changes to get profile migration to work on UNIX. fix stupid mistake that was breaking migration on all platforms.
git-svn-id: svn://10.0.0.236/trunk@46995 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 01:06:12 +00:00
sspitzer%netscape.com
c4930f7cb4 more changes to get -installer to work on UNIX. since there was no registry on UNIX in 4x, so MigrateProfileInfo() for UNIX assumes your profile name is seth and your profile directory in 4.x was /home/seth/.netscape and that you only had one 4.x profile. also, use AUTOMATICALLY_MIGRATE_IF_ONLY_ONE_PROFILE so that on UNIX, we don't automatically attempt to migrate. since we are creating News, Mail, and Cache directories, create ImapMail
git-svn-id: svn://10.0.0.236/trunk@46994 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 00:14:50 +00:00
beard%netscape.com
1335664f7f Fixed a leak and incorrect copy of C string. Added nsXPIDLCString::operator =() to simplify usage.
git-svn-id: svn://10.0.0.236/trunk@46991 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 23:05:47 +00:00