Closed Bug 1379912 Opened 8 years ago Closed 8 years ago

Disposition flag ("replied"/"forwarded") lost if reply/forwarded message was stored as draft, draft was later edited and sent

Categories

(Thunderbird :: Folder and Message Lists, defect)

52 Branch
defect
Not set
major

Tracking

(thunderbird_esr5255+ fixed, thunderbird55 wontfix, thunderbird56 fixed)

RESOLVED FIXED
Thunderbird 56.0
Tracking Status
thunderbird_esr52 55+ fixed
thunderbird55 --- wontfix
thunderbird56 --- fixed

People

(Reporter: christian, Assigned: jorgk-bmo)

References

Details

(Keywords: dataloss, regression)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0 Build ID: 20170628075643 Steps to reproduce: An email account in IMAP mode (tested with two different providers) Click answer on an email save your answer in the draft close your answer open you answer send your answer Actual results: With this procedure there is no flag arrow to to indicate that the receveid message has been answered Same problem with email transfert Expected results: The original (the receiveid) message shoud have a flag arrow to indicate that answer has been send
I can confirm this issue in TB 56 Daily, most likely also broken in TB 52. Still working in TB 45. Alice, can you find the regression for us. Thank you in advance.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(alice0775)
Keywords: regression
Summary: no arrow for answer if the answer go trow the draft folder → no arrow for answer if the answer was stored in draft folder, draft was later edited and sent
Blocks: 1322103
Typo: Thank *you* so much, Alice!!
Attached patch 1379912-mark-replied.patch (v1) (obsolete) — Splinter Review
Hi Magnus. In bug 1322103 we both messed up with: https://hg.mozilla.org/comm-central/rev/f63a0b7059c7e99e7a3435d22a0d0cb9fa35857f#l2.12 The original URI *must* be retrieved from the database, otherwise the original message is not marked as replied if we store and then edit a draft first. So after backing this out, I found a much simpler solution to the problem of bug 1322103. We just grab a copy of the correct original URI before it gets mangled as described.
Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Attachment #8886822 - Flags: review?(mkmelin+mozilla)
Severity: normal → major
Keywords: dataloss
Summary: no arrow for answer if the answer was stored in draft folder, draft was later edited and sent → Disposition flag ("replied"/"forwarded") lost if reply/forwarded message was stored as draft, draft was later edited and sent
Comment on attachment 8886822 [details] [diff] [review] 1379912-mark-replied.patch (v1) Frank-Rainer, I'm sure you could convince yourself in bug 1322172, attachment 8886881 [details] [diff] [review], that what I'm proposing for MsgComposeCommands.js works. Reverting the incorrect change from bug 1322103 in nsMsgCompose.cpp is obvious.
Attachment #8886822 - Flags: review?(frgrahl)
Comment on attachment 8886822 [details] [diff] [review] 1379912-mark-replied.patch (v1) Test with today's Daily. Error was clearly reproducible. With the fix everything worked and the original message got marked. Also tested a few edge cases like deleting the message before reply. No errors found and code looks good. r+
Attachment #8886822 - Flags: review?(frgrahl) → review+
Attachment #8886822 - Flags: review?(mkmelin+mozilla)
Tweaked a comment and found more spots where gOriginalMsgURI needs to be used.
Attachment #8886822 - Attachment is obsolete: true
Attachment #8887179 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 56.0
Comment on attachment 8887179 [details] [diff] [review] 1379912-mark-replied.patch (v2) This certainly needs uplift. I don't think we're doing another TB 55 beta though.
Attachment #8887179 - Flags: approval-comm-esr52+
Attachment #8887179 - Flags: approval-comm-beta+
> Tweaked a comment and found more spots where gOriginalMsgURI needs to be used. Sorry should have mentioned it. Thought it was intentional here.
Comment on attachment 8887179 [details] [diff] [review] 1379912-mark-replied.patch (v2) Not doing another TB 55 beta.
Attachment #8887179 - Flags: approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: