From 125ebfc4427ba4473b8789ef02165c64b42ce769 Mon Sep 17 00:00:00 2001 From: "guha%netscape.com" Date: Wed, 6 Jan 1999 20:26:54 +0000 Subject: [PATCH] add some resources --- rdf/build/makefile.win | 9 ++++++++- rdf/datasource/src/nsMailDataSource.cpp | 10 +++++----- rdf/resources/Mail/joe_meer/inbox | 0 rdf/resources/Mail/joe_meer/other | 0 rdf/resources/Mail/joe_meer/work | 0 5 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 rdf/resources/Mail/joe_meer/inbox create mode 100644 rdf/resources/Mail/joe_meer/other create mode 100644 rdf/resources/Mail/joe_meer/work diff --git a/rdf/build/makefile.win b/rdf/build/makefile.win index 72a5b18033f..a59b56a368d 100644 --- a/rdf/build/makefile.win +++ b/rdf/build/makefile.win @@ -61,7 +61,14 @@ include <$(DEPTH)\config\rules.mak> install:: $(DLL) $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin $(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib - $(MAKE_INSTALL) ..\resources\LocalStore.rdf $(DIST)\bin\res\rdf\ + $(MAKE_INSTALL) ..\resources\Mail\joe@meer.net\inbox $(DIST)\bin\res\rdf\Mail\joe@meer.net + $(MAKE_INSTALL) ..\resources\LocalStore.rdf $(DIST)\bin\res\rdf + $(MAKE_INSTALL) ..\resources\Mail\joe@meer.net\work $(DIST)\bin\res\rdf\Mail\joe@meer.net + $(MAKE_INSTALL) ..\resources\Mail\joe@meer.net\other $(DIST)\bin\res\rdf\Mail\joe@meer.net + $(MAKE_INSTALL) ..\resources\Mail\jane@aol.com\inbox $(DIST)\bin\res\rdf\Mail\jane@aol.com + $(MAKE_INSTALL) ..\resources\Mail\jane@aol.com\hiking $(DIST)\bin\res\rdf\Mail\jane@aol.com + $(MAKE_INSTALL) ..\resources\Mail\jane@aol.com\trash $(DIST)\bin\res\rdf\Mail\jane@aol.com + diff --git a/rdf/datasource/src/nsMailDataSource.cpp b/rdf/datasource/src/nsMailDataSource.cpp index e2db31c5970..b8643661173 100644 --- a/rdf/datasource/src/nsMailDataSource.cpp +++ b/rdf/datasource/src/nsMailDataSource.cpp @@ -453,7 +453,7 @@ MailDataSource::InitAccountList(void) PRDirEntry *de; PRDir* dir; nsIRDFMailAccount* account; - PR_snprintf(fileurl, sizeof(fileurl), "Mail"); + PR_snprintf(fileurl, sizeof(fileurl), "res\\rdf\\Mail"); dir = PR_OpenDir(fileurl); if (dir == NULL) { //if (CallPRMkDirUsingFileURL(fileurl, 00700) > -1) dir = OpenDir(fileurl); @@ -704,7 +704,7 @@ MailAccount::InitMailAccount (const char* url) PRDirEntry *de; PRDir* dir; nsIRDFMailFolder* folder; - PR_snprintf(fileurl, sizeof(fileurl), "Mail\\%s", &url[12]); + PR_snprintf(fileurl, sizeof(fileurl), "res\\rdf\\Mail\\%s", &url[12]); dir = PR_OpenDir(fileurl); if (dir == NULL) { //if (CallPRMkDirUsingFileURL(fileurl, 00700) > -1) dir = OpenDir(fileurl); @@ -907,7 +907,7 @@ MailFolder::ReadSummaryFile (char* url) if (startsWith("mailbox://", url)) { char* folderURL = &url[10]; - PRInt32 flen = PL_strlen("Mail") + PL_strlen(folderURL) + 4 + 1; + PRInt32 flen = PL_strlen("res\\rdf\\Mail") + PL_strlen(folderURL) + 4 + 1; char* fileurl = (char*) PR_MALLOC(flen); PRInt32 nurllen = PL_strlen(url) + 20 + 1; char* nurl = (char*) PR_MALLOC(nurllen); @@ -919,12 +919,12 @@ MailFolder::ReadSummaryFile (char* url) PRBool summaryFileFound = PR_FALSE; char* flags = 0; - PR_snprintf(fileurl, flen, "Mail\\%sssf", folderURL); + PR_snprintf(fileurl, flen, "res\\rdf\\Mail\\%sssf", folderURL); fileurl[PL_strlen(fileurl)-4] = '.'; //XXX how do you spell kludge? convertSlashes(fileurl); // fileurl = MCDepFileURL(fileurl); mSummaryFile = openFileWR(fileurl); - PR_snprintf(fileurl, flen, "Mail\\%s", folderURL); + PR_snprintf(fileurl, flen, "res\\rdf\\Mail\\%s", folderURL); // fileurl = MCDepFileURL(fileurl); mf = openFileWR(fileurl); diff --git a/rdf/resources/Mail/joe_meer/inbox b/rdf/resources/Mail/joe_meer/inbox new file mode 100644 index 00000000000..e69de29bb2d diff --git a/rdf/resources/Mail/joe_meer/other b/rdf/resources/Mail/joe_meer/other new file mode 100644 index 00000000000..e69de29bb2d diff --git a/rdf/resources/Mail/joe_meer/work b/rdf/resources/Mail/joe_meer/work new file mode 100644 index 00000000000..e69de29bb2d