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
sspitzer%netscape.com
292bac0935
more changes to get profile migration to work on UNIX
...
git-svn-id: svn://10.0.0.236/trunk@46983 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 22:18:47 +00:00
sspitzer%netscape.com
8e7820e688
rewrite nsPrefMigration to use the pref service instead of old school PREF_* api.
...
git-svn-id: svn://10.0.0.236/trunk@46982 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 22:18:22 +00:00
sspitzer%netscape.com
e33d52ae4d
change the nsIProfileService interface and implemenation. add an Init() method
...
instead of doing things in the constructor.
git-svn-id: svn://10.0.0.236/trunk@46981 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 22:15:24 +00:00
sspitzer%netscape.com
9e8da67f11
follow convention and put the preprocessor macros on the first character of the
...
line.
git-svn-id: svn://10.0.0.236/trunk@46977 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 21:21:16 +00:00
sspitzer%netscape.com
6db5bacb60
this comment is for the last checkin.
...
define server_type constants.
handle it gracefully, if they didn't use imap or pop. (example, movemail on unix.)
the pref is "mail.server_type" and it's an int (not "mail.server.type" as a char *)
initialize some variables to nsnull.
git-svn-id: svn://10.0.0.236/trunk@46975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 20:07:44 +00:00
sspitzer%netscape.com
b782debcf6
src/nsPrefMigration.cpp
...
git-svn-id: svn://10.0.0.236/trunk@46974 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 20:05:11 +00:00
sspitzer%netscape.com
cd139ab180
changes to get pref-migrator (think apprunner -installer) on UNIX.
...
use the NS_DEFINE_STATIC_IID_ACCESSOR and NS_DEFINE_STATIC_CID_ACCESSOR macros.
fix a bunch of warnings. rewrite to use #defines. remove unused variables. use MAXPATHLEN instead of _MAX_PATH.
when setting a 4.x pref (example "mail.directory") to a new 5.0 value, create a "premigration" pref
with the old value. (example "premigration.mail.directory").
git-svn-id: svn://10.0.0.236/trunk@46971 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 19:48:50 +00:00
sspitzer%netscape.com
10d392f7d9
makefile for building pref-migrator on UNIX. NOT PART OF BUILD YET.
...
git-svn-id: svn://10.0.0.236/trunk@46957 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 16:08:15 +00:00
colin%theblakes.com
2902c391d4
Tidy up library list
...
git-svn-id: svn://10.0.0.236/trunk@46956 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 15:37:40 +00:00
sspitzer%netscape.com
bb3545a1ae
makfiles for building the pref-migrator on unix. NOT PART OF BUILD YET.
...
git-svn-id: svn://10.0.0.236/trunk@46901 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-11 00:24:28 +00:00
dougt%netscape.com
139f800224
Fixing LL_ compare routines.
...
git-svn-id: svn://10.0.0.236/trunk@46809 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 18:56:30 +00:00
dbragg%netscape.com
0c3d693428
Added the new mail directory code for POP and IMAP
...
git-svn-id: svn://10.0.0.236/trunk@46795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 18:41:33 +00:00
alecf%netscape.com
308f69b004
fix printf and don't release the service we're given
...
git-svn-id: svn://10.0.0.236/trunk@46713 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:38:18 +00:00
alecf%netscape.com
d6297c766d
fix uninitialize variable that was preventing prefs from saving on windows
...
git-svn-id: svn://10.0.0.236/trunk@46704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 05:25:29 +00:00
alecf%netscape.com
09c00f3e44
added files: mozilla/profile/public/nsIProfile.idl
...
git-svn-id: svn://10.0.0.236/trunk@46673 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:51:45 +00:00
alecf%netscape.com
9096c4def4
profile changes on windows
...
git-svn-id: svn://10.0.0.236/trunk@46672 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:51:22 +00:00
alecf%netscape.com
c2e571004d
land new profiles stuff
...
- move command line processing into nsIProfile
- fix up leaks
- use SERVICE macros
- general cleanup
git-svn-id: svn://10.0.0.236/trunk@46671 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:51:02 +00:00
alecf%netscape.com
4e0dae6403
link against appropriate libraries in preparation for profile landing
...
git-svn-id: svn://10.0.0.236/trunk@46670 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:40:49 +00:00
gayatrib%netscape.com
bfc8590db8
Fixing bug #13518
...
git-svn-id: svn://10.0.0.236/trunk@46668 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:34:45 +00:00
alecf%netscape.com
4afebcbd1f
adding neckoutil_s in preparation for profile landing
...
git-svn-id: svn://10.0.0.236/trunk@46667 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:30:26 +00:00
alecf%netscape.com
26caf21f67
add new files to prepare for profile landing
...
git-svn-id: svn://10.0.0.236/trunk@46666 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-10 00:29:08 +00:00
dougt%netscape.com
b20b29f397
fixing build bustage.
...
git-svn-id: svn://10.0.0.236/trunk@46612 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 20:30:14 +00:00
dougt%netscape.com
66f1984420
nsFileSpec::GetDiskSpace now returns a PRUint64. (12479)
...
thanks to Chet Murphy <cmurphy@modelworks.com > for the windows code!
git-svn-id: svn://10.0.0.236/trunk@46590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 19:20:35 +00:00
dbragg%netscape.com
86f6824e60
Added the writing of the string Mozilla User Preferences to the top of the prefs js file. Fixes bug 8610
...
git-svn-id: svn://10.0.0.236/trunk@46185 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-07 18:28:55 +00:00
dveditz%netscape.com
ee3cfca304
remove xp_file.h from NSReg.h, required minor tweaking elsewhere to include
...
now missing NSPR types.
git-svn-id: svn://10.0.0.236/trunk@46020 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 19:46:18 +00:00
bruce%cybersight.com
a7fd7cbbce
Use nsCRT::free() on nsEscape() result rather than delete[]. Fix some memory leaks. Remove some warnings.
...
git-svn-id: svn://10.0.0.236/trunk@46012 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-04 17:00:15 +00:00
waterson%netscape.com
d4788436e3
Fix 'rename profile' to bring up the right file.
...
git-svn-id: svn://10.0.0.236/trunk@45915 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 20:36:04 +00:00
waterson%netscape.com
a24a663e44
Wrap in <html:div> to get layout to work right.
...
git-svn-id: svn://10.0.0.236/trunk@45914 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 20:32:10 +00:00
waterson%netscape.com
0d10c4c113
Fix profile manager XUL; was incorrectly using 'xul:' namespace on window tag.
...
git-svn-id: svn://10.0.0.236/trunk@45904 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 16:51:41 +00:00
gayatrib%netscape.com
5c8554e915
Correcting some typos
...
git-svn-id: svn://10.0.0.236/trunk@45795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 00:58:34 +00:00
gayatrib%netscape.com
1a9f3b8396
Partial fix for bug #13033--yet to disable buttons
...
git-svn-id: svn://10.0.0.236/trunk@45794 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-03 00:56:26 +00:00