Open Bug 594243 Opened 14 years ago Updated 2 years ago

nsMapiHook::PopulateCompFieldsForSendDocs should create unique temporary file for attachments.

Categories

(MailNews Core :: Simple MAPI, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: hiro, Unassigned)

References

Details

(Whiteboard: [patchlove])

Attachments

(1 file)

nsMapiHook::PopulateCompFieldsForSendDocs should create unique temporary file for attachments as well as nsMapiHook::HandleAttachments.
Attached patch Fix (deleted) — Splinter Review
Attachment #472909 - Flags: review?(bienvenu)
The patch depends on fix for bug 594239.
Depends on: 594239
Assignee: nobody → ikezoe
Status: NEW → ASSIGNED
Comment on attachment 472909 [details] [diff] [review] Fix thx for the patch. I'll try it out, but in the meantime, a few comments. I know you're just moving/copying code, but we should take the opportunity to fix it: space after // please. + //Temp Directory + nsCOMPtr <nsIFile> pTempFileDir; current style is no space between nsCOMPtr and < on this or any of the other lines. can you use NS_ENSURE_SUCCESS(rv, rv); here: + rv = pTempDir->Create(nsIFile::DIRECTORY_TYPE, 0777) ; + if (NS_FAILED(rv)) return rv ; and same here since I don't think you need to check pTempFile, if rv is success.; + rv = pTempDir->Clone(getter_AddRefs(pTempFile)); + if (NS_FAILED(rv) || !pTempFile) + return rv;
Comment on attachment 472909 [details] [diff] [review] Fix this doesn't compile because nsMapiHook::CreateUniqueTempFile isn't defined in the header file.
Attachment #472909 - Flags: review?(bienvenu) → review-
Assignee: hiikezoe → nobody
Status: ASSIGNED → NEW
Whiteboard: [patchlove]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: