Fix HackToGetBody() to works on Mac and Unix as well

This commit is contained in:
ducarroz%netscape.com 1999-04-28 02:17:37 +00:00
Родитель d4dc4486be
Коммит 74f97a4e51
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -398,7 +398,18 @@ nsComposeAppCore::HackToGetBody(PRInt32 what)
char *buffer = (char *) PR_CALLOC(1024);
if (buffer)
{
nsFileSpec fileSpec("c:\\temp\\tempMessage.eml");
#ifdef XP_UNIX
#define MESSAGE_PATH "/usr/tmp/tempMessage.eml"
#endif
#ifdef XP_PC
#define MESSAGE_PATH "c:\\temp\\tempMessage.eml"
#endif
#ifdef XP_MAC
#define MESSAGE_PATH "tempMessage.eml"
#endif
nsFileSpec fileSpec(MESSAGE_PATH);
nsInputFileStream fileStream(fileSpec);
nsString msgBody = what == 2 ? "--------Original Message--------\r\n"
: "";