зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
13b99bd9be
Коммит
b7b1c97bb2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче