Closed
Bug 239226
Opened 21 years ago
Closed 21 years ago
Opening Forward Message Attachment Opens parent message in a new window
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird0.6
People
(Reporter: bugs, Assigned: mscott)
Details
(Keywords: regression)
Attachments
(1 file)
835 bytes,
patch
|
darin.moz
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
In a trunk build (Mozilla Thunderbird 0.5+ (20040329)) when I have a message
from someone containing a forwarded message as an attachment, opening the
forwarded message in a new window by double clicking the attachment does not work.
Steps to reproduce:
1) Preview an email containing a forwarded message as an attachment.
2) Double click the attachment to view the forwarded message in a new Mail window
Expected results:
- view the email attachment by itself in a new window
Actual results:
- parent email message itself (the one that contains the forwarded email
attachment) opens in a new window
As a result it is impossible to read most forwarded emails.
Assignee | ||
Comment 1•21 years ago
|
||
this used to work
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird0.6
Assignee | ||
Comment 2•21 years ago
|
||
I know this used to work not that long ago. I'm not sure what broke it. I will
investigate
Assignee | ||
Comment 3•21 years ago
|
||
the regression is imap only. Moving it to a local folder and things still work fine.
When opening the attachment the url for the attachment looks like:
imap://macgrego@mail.scott-macgregor.org:143/fetch%3EUID%3E.INBOX%3E858?part=1.2
This then gets turned into the following url by the imap service when it is run:
imap://macgrego@mail.scott-macgregor.org:143/fetch%3EUID%3E.INBOX%3E858.part=1.2&type=x-message-display&filename=%5BFwd%3A%20Test
The structure of the url looks good. We just don't seem to be streaming the part
out correctly anymore for imap.
i don't remember it ever working. i've been using seamonkey for imap for a while
now. i was going to mark this w/ dupeme, but this is a thunderbird bug.
Assignee | ||
Comment 5•21 years ago
|
||
this has worked for over a year until just recently. It was turned on in April
of 2003 and it worked in Thunderbird 0.5 so it's a very recent regression.
Bug #143565 is the bug that implemented this feature.
Assignee | ||
Comment 6•21 years ago
|
||
the last working build for this was on the 18th of February. The string
defragmentation branch landed on that day and nothing really changed in
mailnews. My guess is we are looking for one of those subtle string change
regressions probably somewhere in libmime where we decide to extract a part from
a message stream.
Comment 7•21 years ago
|
||
(In reply to comment #0)
Ben Goodger, your problem is same as Mozilla Mail&News bug 203570?
> [message/rfc822] opening a fwd local message has original messages's attachments
Assignee | ||
Comment 8•21 years ago
|
||
nope that's a separate issue that has never worked. This is a regression please
read the comments above :)
Assignee | ||
Comment 9•21 years ago
|
||
Interesting, using a debug 0.5 build and comparing it to a debug trunk build
that has the problem, I see the following:
The URL sent to nsMessengerContentHandler::HandleContent which we then turn
around and open in a stand alone message window looks like:
0.5:
"imap://scott@mail.scott-macgregor.org:143/fetch%3EUID%3E.INBOX%3E250?part=1.2&type=message/rfc822&filename=Mozilla%20Email"
0.5+:
+ mStr 0x033f6af8
"imap://scott@mail.scott-macgregor.org:143/fetch%3EUID%3E.INBOX%3E250.part=1.2&type=message/rfc822&filename=Mozilla%20Email"
Note the lack of a question mark before the part=1.2 string in the url
Assignee | ||
Comment 10•21 years ago
|
||
The problem was caused by the string defragmentation landing. The url string we
were trying to run was getting mutated out from underneath the nsIImapUrl
object.
Assignee | ||
Comment 11•21 years ago
|
||
Comment on attachment 145295 [details] [diff] [review]
the fix
asking Darin for the r=. This was a regression caused by the string
defragmentation landing. The code in question was causing the url spec for the
underlying nsIURI being run to get modified inadvertantly. I'm calling
BeginWriting on the nsCAutoString before we attempt to modify the underlying
buffer.
Is this ok Darin?
Attachment #145295 -
Flags: superreview?(bienvenu)
Attachment #145295 -
Flags: review?(darin)
Comment 12•21 years ago
|
||
Comment on attachment 145295 [details] [diff] [review]
the fix
ok with me if it's ok with Darin.
Attachment #145295 -
Flags: superreview?(bienvenu) → superreview+
Assignee | ||
Comment 13•21 years ago
|
||
this regression fix is going to need 1.7 final status I think...I'll ask over
email.
Keywords: regression
Comment 14•21 years ago
|
||
a=chofmann for the trunk if it looks good to darin. is this seamonkey too?
Comment 15•21 years ago
|
||
Comment on attachment 145295 [details] [diff] [review]
the fix
>Index: nsImapProtocol.cpp
>+ char * urlString;
>+ urlSpec.BeginWriting(urlString);
>+
> // for now, truncate of the query part so we don't duplicate urls in the cache...
>+ char * anchor = (char *)strrchr(urlString, '?');
you can also write this as a shorthand:
char * anchor = (char *)strrchr(urlSpec.BeginWriting(), '?');
thank dbaron for adding a BeginWriting() that returns the iterator :-)
r=darin
Attachment #145295 -
Flags: review?(darin) → review+
Comment 16•21 years ago
|
||
I just filed bug 239405 on the general problem exposed by this bug. I'll search
the rest of the tree for similar problems. Wish me luck! :-)
Assignee | ||
Comment 17•21 years ago
|
||
I checked in the fix using Darin's suggested shorthand notation. Please note
this effects Thunderbird and seamonkey
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 18•21 years ago
|
||
I can confirm this has been fixed in Seamonkey
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040402
You need to log in
before you can comment on or make changes to this bug.
Description
•