Closed
Bug 86089
Opened 24 years ago
Closed 23 years ago
need to clean up mime attachments code
Categories
(MailNews Core :: MIME, defect, P2)
MailNews Core
MIME
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.6
People
(Reporter: vparthas, Assigned: bugzilla)
References
Details
Attachments
(3 files, 2 obsolete files)
77.04 KB,
patch
|
vparthas
:
review+
sspitzer
:
superreview+
|
Details | Diff | Splinter Review |
65.50 KB,
application/msword
|
Details | |
4.65 KB,
text/plain
|
Details |
need to clean up mime attachments code- we use the same name as the forwarding
subject for the temp file name and this forces us to hash the names.
we also need to use nsISupports instead of merely passing the attachments as
strings.
Comment 1•24 years ago
|
||
spun off of bug #75449
Comment 2•24 years ago
|
||
as I understand it:
part of the problem is that when we forward a message, we create a temp file
using the subject of the message for the name.
it seems like we should be able to make the tmp file have one name, and the
attachment file name (within MIME) be something else.
Assignee | ||
Comment 3•23 years ago
|
||
I'll use this bug for the rewrite of the way we handle attachment in
nsIMsgCompFields and therefore inside mime as well.
In fact, we need to carry the following information for each attachment:
attachment name
url
content-type
charset
content-base
temporary, need to be deleted
I hope I did not forget anything...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.6
Assignee | ||
Updated•23 years ago
|
Whiteboard: have fix
Assignee | ||
Comment 5•23 years ago
|
||
Assignee | ||
Comment 6•23 years ago
|
||
Assignee | ||
Comment 7•23 years ago
|
||
Comment on attachment 54825 [details] [diff] [review]
and, there is the new file I forget to include in the first patch.
R=varada
Attachment #54825 -
Flags: review+
Assignee | ||
Comment 8•23 years ago
|
||
Comment on attachment 54824 [details] [diff] [review]
Proposed fix, v1
r=varada;about time we had the attachment array :)
Attachment #54824 -
Flags: review+
Comment 9•23 years ago
|
||
JF, could you fix the tabs in these files before you checkin?
Assignee | ||
Comment 10•23 years ago
|
||
sure...
Assignee | ||
Updated•23 years ago
|
Attachment #54824 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Attachment #54825 -
Attachment is obsolete: true
Assignee | ||
Comment 11•23 years ago
|
||
Assignee | ||
Comment 12•23 years ago
|
||
Reporter | ||
Comment 13•23 years ago
|
||
Comment on attachment 55275 [details] [diff] [review]
proposed fix, v2 (same as v1 but untabified and updated with new tree)
r=varada
Attachment #55275 -
Flags: review+
Comment 14•23 years ago
|
||
Comment 15•23 years ago
|
||
1) idl comments, like in nsIMsgAttachment
instead of //, do javadoc style comments.
so that they can be digestable by doxygen.
http://unstable.elemental.com/mozilla/
(see #16 on http://www.mozilla.org/hacking/reviewers.html)
good job on commenting the obsolete interfaces. make sure to log bugs to remove
the obsolete stuff.
2)
I'm glad you fixed this:
-#ifdef XP_WIN
- if (tempName && PL_strchr(tempName, '|'))
- {
- PR_Free(tempName);
- tempName = nsnull;
- }
-#endif
-#ifdef XP_MAC
- if (tempName && PL_strlen(tempName) >= 31)
- PR_DELETE(tempName)
-#endif
there's a bug on that somewhere, perhaps assigned to you, nhotta or me.
3)
fix string foo:
+ decodedSubject.InsertWithConversion("[Fwd: ", 0);
+ decodedSubject.AppendWithConversion("]");
instead do something like this:
decodedSubject.Insert(NS_LITERAL_STRING("Fwd: ").get(), 0);
decodedSubject.Append(NS_LITERAL_STRING("]").get());
other than that, it looks good. some great cleanup, ducarroz.
sr=sspitzer
Comment 16•23 years ago
|
||
Comment on attachment 55275 [details] [diff] [review]
proposed fix, v2 (same as v1 but untabified and updated with new tree)
sr=sspitzer, once you clean up the idl comments and the string foo.
Attachment #55275 -
Flags: superreview+
Assignee | ||
Comment 17•23 years ago
|
||
Answers to Seth question/comment:
1) will do before checked in
2) bug 89090
3) will do before check in
Thanks for the review.
Assignee | ||
Comment 18•23 years ago
|
||
fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•23 years ago
|
Whiteboard: have fix
As I understand it, this bug was a re-organization, cleanup of code, and
therefore isn't limited to a single testcase to verify. Verified that this was
checked into the trunk, and new bugs on individual bugs should be logged separately.
Status: RESOLVED → VERIFIED
OS: Windows 2000 → All
QA Contact: esther → stephend
Hardware: PC → All
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
•