fix regression in deleting attachments on windows due to file spec removal, sr=mscott 377852

git-svn-id: svn://10.0.0.236/trunk@224974 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com
2007-04-24 23:47:08 +00:00
parent 3665a1e03b
commit b045a43576

View File

@@ -2741,9 +2741,12 @@ nsDelAttachListener::OnStopRequest(nsIRequest * aRequest, nsISupports * aContext
mNewMessageKey = PR_UINT32_MAX;
nsCOMPtr<nsIMsgCopyService> copyService = do_GetService(NS_MSGCOPYSERVICE_CONTRACTID);
m_state = eCopyingNewMsg;
// clone file because nsIFile on Windows caches the wrong file size.
nsCOMPtr <nsIFile> clone;
mMsgFile->Clone(getter_AddRefs(clone));
if (copyService)
{
rv = copyService->CopyFileMessage(mMsgFile, mMessageFolder, nsnull, PR_FALSE,
rv = copyService->CopyFileMessage(clone, mMessageFolder, nsnull, PR_FALSE,
mOrigMsgFlags, listenerCopyService, mMsgWindow);
}
return rv;