fix problem sending .doc files when apple double has been associated with .doc files on non-mac, sr=mscott 236239

This commit is contained in:
bienvenu%nventure.com 2004-09-30 16:36:47 +00:00
Родитель 13b99bd9be
Коммит b7b1c97bb2
2 изменённых файлов: 9 добавлений и 1 удалений

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

@ -465,6 +465,9 @@ FetcherURLDoneCallback(nsresult aStatus,
#if defined(XP_MAC) || defined(XP_MACOSX)
//Do not change the type if we are dealing with an apple double file
if (!ma->mAppleFileSpec)
#else
// can't send appledouble on non-macs
if (strcmp(aContentType, "multipart/appledouble"))
#endif
{
PR_FREEIF(ma->m_type);

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

@ -103,7 +103,6 @@
#include "nsNetCID.h"
#include "nsNetError.h"
#include "nsMsgUtils.h"
#include "nsIRDFService.h"
#include "nsIMsgMdnGenerator.h"
#include "nsISmtpServer.h"
#include "nsIMsgCompose.h"
@ -2319,6 +2318,9 @@ nsMsgComposeAndSend::AddCompFieldLocalAttachments()
if (NS_SUCCEEDED(rv) && !fileExt.IsEmpty()) {
nsCAutoString type;
mimeFinder->GetTypeFromExtension(fileExt, type);
#if !defined(XP_MAC) && !defined(XP_MACOSX)
if (!type.Equals("multipart/appledouble")) // can't do apple double on non-macs
#endif
m_attachments[newLoc].m_type = ToNewCString(type);
}
}
@ -2333,6 +2335,9 @@ nsMsgComposeAndSend::AddCompFieldLocalAttachments()
if (NS_SUCCEEDED(rv) && !fileExt.IsEmpty()) {
nsCAutoString type;
mimeFinder->GetTypeFromExtension(fileExt, type);
#if !defined(XP_MAC) && !defined(XP_MACOSX)
if (!type.Equals("multipart/appledouble")) // can't do apple double on non-macs
#endif
m_attachments[newLoc].m_type = ToNewCString(type);
}
}