Closed Bug 100036 Opened 24 years ago Closed 24 years ago

Changing accounts during composition changes end of message text

Categories

(MailNews Core :: Composition, defect, P1)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: nigel.jewell, Assigned: bugzilla)

Details

(Keywords: dataloss, Whiteboard: have fix)

Attachments

(1 file)

Changing the account whilst composing a message removes the last couple of lines of the message text. This is probably due to the signature changing and the replacement failing.
QA Contact: sheelar → nbaca
Build 2001-09-19-04: WinMe Setting this to New because I have been able to duplicate parts of what is reported. While composing a new message that has a signature attached, I changed the identity in the From field and noticed that some portions of the text disappeared (i.e. I number the page from 1-20 and the top part of nubme 3 disappeard). After sending/receiving the text was there. 1.After resizing the new message/compose window does the text reappear? 2.After sending /receiving the message, does the text display? 3. What type of signature file do you have (plain or html text, how many lines)
Status: UNCONFIRMED → NEW
Ever confirmed: true
nominating. If this is happening and the user doesn't realize it happened then they will send an incomplete message. If the text is still there when it is received then it's probably not as severe a bug.
Severity: normal → major
Keywords: dataloss, nsbeta1
OS: Linux → All
Priority: -- → P1
Target Milestone: --- → mozilla0.9.7
Keywords: nsbeta1nsbeta1+
Target Milestone: mozilla0.9.7 → mozilla0.9.9
bad, bad, bad. I thing we have already another bug related to signature replacement problem which should be the same cause. Accepting
Status: NEW → ASSIGNED
Looks like an window update problem! The only way the text could be deleted is if you add text after the signature. Fix for bug 61829 will fix that (in HTML mode only). Ninoschka, are you still able to reproduce this problem?
I still have this problem (using a Linux i386 build > 0.9.7). It is varied - but "appears" to delete the entire paragraph that is immediately before a signature indicator. So: Text Name -- Signature Becomes: Text -- Signature
Further information in response to Ninoschka Baca: Altering the window size/position has no effect. The text has been removed from the document, not just vanished due to a display bug. It has to be retyped. The text has gone, so sending, receiving, saving etc does not help. The signature file is plain text.
your signature in plain text but are you using a plain text or an HTML compose window?
Sorry - should have said; Plain text compose window. The signature file is a single line.
ok, I found the problem. When the document looks like that: #1<text: message body> #2<br> #3<text: -- > #4<br> #5<text: signature> We look for the BR node before the signature separator, the node #2. Then we delete all the node from top to bottom from this position. The problem is that when we delete the node #2, node #1 and #3 merge together. Therefore when we delete the node #3, we delete as well the text that was in the node #1.
Attached patch Proposed fix, v1Splinter Review
The fix is to delete nodes from bottom to top, that will prevent the merge problem.
Whiteboard: have fix
Comment on attachment 66985 [details] [diff] [review] Proposed fix, v1 r=cavin.
Attachment #66985 - Flags: review+
Comment on attachment 66985 [details] [diff] [review] Proposed fix, v1 sr=bienvenu
Attachment #66985 - Flags: superreview+
Fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Trunk build 2002-03-01: WinMe, Linux RH 7.1, Mac 9.1 Verified Fixed.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: