Closed
Bug 107697
Opened 23 years ago
Closed 23 years ago
Change MAPI SendMail to comply with Message Compose changes
Categories
(MailNews Core :: Simple MAPI, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: rdayal, Assigned: rdayal)
References
Details
Attachments
(1 file)
6.23 KB,
patch
|
bugzilla
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
There has been a design change in the Message Compose interfaces, this effects
the design of MAPISendMail and MAPISendDocument implementation. This bug is to
track these modifications for trunk landing.
Below is the mail from JF regarding these changes :
Hi Rajiv,
I checked in this morning some major change that affect the way we manage
attachment in message compose. I have replaced the string list we were using in
nsIMsgCompFieds by an array of object of type nsIMsgAttachment. Also, I have
made some of the APIs obsolete.
Think to not use anymore:
nsIMsgCompFields::GetAttachments
nsIMsgCompFields::SetAttachments
nsIMsgCompFileds::GetTemporaryFiles
nsIMsgCompFileds::SetTemporaryFiles
instead, use the new one:
nsIMsgCompFileds::GetAttachmentsArray
nsIMsgCompFileds::AddAttachment
nsIMsgCompFileds::RemoveAttachment
nsIMsgCompFileds::RemoveAttachments
Also, I made obsolete nsIMsgComposeService::OpenComposeWindowWithValues and
nsIMsgComposeService::OpenComposeWindowWithCompFields. If I remember right, you
are not using them.
The goal of this change is to allow to specify more information about
attachment. Now you can specify the name, the url, if it's a temp file, the
content-type, etc... That should allow you to simplify your code.
Let me know if you have any question
JFD
Assignee | ||
Updated•23 years ago
|
Summary: Change MAPI SendMail, To comply with Message Compose design changes modify SendMail and SendDoc design → Change MAPI SendMail, SendMail to comply with Message Compose changes
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.6
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Assignee | ||
Comment 1•23 years ago
|
||
Assignee | ||
Comment 2•23 years ago
|
||
Hi JF and Scott,
Can u please r and sr the attached patch with changes in SendMail code to comply
with the changes in Msg Compose to handle attachments using the path name and
real file name.
thanks, - Rajiv.
Summary: Change MAPI SendMail, SendMail to comply with Message Compose changes → Change MAPI SendMail to comply with Message Compose changes
Comment 3•23 years ago
|
||
Reassign to Krishna, since Rajiv is on vacation.
Assignee: rdayal → kkhandrika
Comment 4•23 years ago
|
||
Comment on attachment 56761 [details] [diff] [review]
patch with changes to comply with changes in Msg Compose
looks good. R=ducarroz
Attachment #56761 -
Flags: review+
Updated•23 years ago
|
Priority: -- → P1
Comment 5•23 years ago
|
||
+ nsAutoString realFileName ;
+ realFileName.AssignWithConversion ((char *)
aFiles[i].lpszFileName) ;
+ attachment->SetName(realFileName.get()) ;
can probably be expressed as
attachment->SetName(NS_LITERAL_STRING( (char *)aFiles[i].lpszFileName).get());
which potentially saves an extra string copy.
other than that, everything looks good.
Comment 6•23 years ago
|
||
The NS_LITERAL_STRING mechanism doesn't work here as it is internally converted
using the standard 'L' convertion macro, wich takes a literal string and
substitutes in pre-processing phase.
Comment 8•23 years ago
|
||
if ns_Literal_STRING won't work, how about nsDependentString instead of
nsAutoString?
Assignee | ||
Comment 9•23 years ago
|
||
attachment->SetName expects a unicode string, so we need to convert the ascii
string data here to unicode string data, nsDependentString wouldnt do this for us.
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Comment 10•23 years ago
|
||
Comment on attachment 56761 [details] [diff] [review]
patch with changes to comply with changes in Msg Compose
sr=mscott
Attachment #56761 -
Flags: superreview+
Assignee | ||
Comment 11•23 years ago
|
||
checked in to MAPI_NEW_DIR_TRUNK branch.
Assignee | ||
Comment 12•23 years ago
|
||
checked into the trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 13•23 years ago
|
||
verified on mozilla & netscape trunk 2002022703 builds
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•