Closed Bug 206473 Opened 22 years ago Closed 21 years ago

messages corrupted after moving between folders


(MailNews Core :: Database, defect)

Windows 2000
Not set


(Not tracked)



(Reporter: ziffete, Assigned: Bienvenu)


(Blocks 1 open bug)


(Whiteboard: [candidate for 1.4.1])


(2 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507

i've successfully imported from outlook express more than 900 messages.
then using drag and drop i moved all the messages from the "inbox" folder
created by the import tool ("outlook express mail") to another folder (i've used
the "inbox folder" for the mail account).
the process terminated correctly. then i tried reading some random messages, to
see if all was ok... and it wasn't. many messages were corrupted: some parts of
the messages were missing or the text was intermixed with parts of other
messages. it seems that the "move messages" feature is broken. maybe this
happens only  when moving  many messages at the same time.

Reproducible: Always

Steps to Reproduce:
1. import messages from outlook express (tried only using more that 900 messages)
2. select all imported messages using ctrl + a.
3. drag the messages to the inbox folder
4. check the messages: many are corrupted
do you have check for new mail turned on, and automatically download new mail?
In general, the move message feature works fine, afaik. I don't know about the
outlook express import feature, though. Do the messages look fine in the outlook
express folder?
>do you have check for new mail turned on, and automatically download new mail?
I moved the messages when i was offline, so i don't think that's a problem.

>I don't know about the outlook express import feature, though.
the messages immediately after the import were ok

>Do the messages look fine in the outlook express folder?

I can try removing all personal messages and send you the remaining ones (most
of the email are from mailing lists and similar, so I don't have problems
sharing them). I don't know if the problem will be present after moving the
files, but maybe you'll be able to reproduce it. Feel free to contact me
directly by email, if you want.
Attached patch proposed fix (obsolete) — Splinter Review
this patch makes copying local messages tolerant of embedded nulls in messages.
Comment on attachment 124464 [details] [diff] [review]
proposed fix


david, is something we want for 1.4 final?

maybe after it gets tested and verified on the trunk, I could land on the 1.4
Attachment #124464 - Flags: superreview+
Attachment #124464 - Flags: review+
you might - it's definitely data loss. Also, remember that compact uses this
code, so compacting a folder like this will lose data as well.
Ever confirmed: true
I've logged bug #207522 on the import code issue.

I'd like to take this on the 1.4 branch, once verified on the trunk.

I'll go query for dups, david thinks we might have a few.
Blocks: 207522
Flags: blocking1.4+
Keywords: nsbeta1
Whiteboard: [fix in hand, wanted for 1.4 branch]
Target Milestone: --- → mozilla1.4final
Attached patch correct fix (obsolete) — Splinter Review
previous fix was wrong (but worked when I tested it) since it was using end
Attachment #124464 - Attachment is obsolete: true
Comment on attachment 124507 [details] [diff] [review]
correct fix

r/sr=sspitzer for the trunk, once verified, we'd want on the branch.
Attachment #124507 - Flags: superreview+
Attachment #124507 - Flags: review+
fix checked in.
Closed: 21 years ago
Resolution: --- → FIXED
for the branch, this is the fix that should be considered. The previous patch
introduced a regression that this cumulative patch fixes.
Attachment #124507 - Attachment is obsolete: true
David, when did you check this in?  I took the 6-2 trunk and I still see a
problem with the 1st message in the attached Inbox.  

I saved the dbx file to my desktop on winxp, created a new profile, added a pop
account then imported the dbx file (note: this OS profile doesn't have outlook
express installed so I'm asked for the location of the dbx file).  Both messages
look OK within in the Outlook imported folder.

I then dragged both messages from the Outlook imported folder to a new folder on
my pop account.  The 1st message is displayed with raw text in the beige area of
the message.  The 2nd message displays OK.
If I drag each message individually, the 1st one displays no text in the beige
area. The 2nd message displays OK.
the 6.2 trunk build has this fix. But I don't know that pretending it's an
Outlook file is a valid test. I tried again with a trunk build and the messages
moved OK.
So how did you use the sample dbx file?  
I have outlook express installed - maybe when you said Outlook, you meant
Outlook Express?
Where do we stand on this one?  Do we need re-reviews?  Is the no-regression
patch in the trunk?  Do we have verification so we can request for 1.4 approval?
yes, the cumulative fix is on the trunk. We apparently don't have verification
though it does fix the problem for me. Seth and I have agreed that we're not
going to push this for 1.4.
Yes, I meant Outlook Express throughout my comment 12.  I decided to test this
using my Outlook Express profile located in a different Winxp profile.  That
profile had qatest04 account set up in Outlook Express.  I launched the 6-2
trunk and imported my qatest04 messages from Outlook Express and then moved all
the message into a local folder.  I opened all of the messages that had been
moved and they all look fine.  If there was something special about those those
2 messages, in particular the app originally used to send them, let me know and
I'll try to recreate them.
yes, those messages had embedded nulls in them, which caused the problem when
moving them (though not so much when importing them). So in that other winxp
profile, you can just drop the attached Inbox.dbx file on top of the existing
inbox.dbx and try these steps again.
Well I'm not sure my Outlook Express is quite right because I searched for
inbox.dbx files throughout my system and only found the one I saved to my hard
drive from the bug.  That's why I didn't do this first.  In any case one of the
messages in my imported qatest04 account exhibited the problem in a build before
the fix and did not have the problem in the 6-2 using the menu to move or 6-3
trunk build using drag n drop so I can verify this based on my one message.  
reopening, need to verify for trunk only and leave open for branch verification
Resolution: FIXED → ---
Ok, thx, Esther! I don't know much about Outlook Express, but I did set it up a
while back to see how it did some things.
putting back to resolved fixed.  This is verified on trunk only.
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
david and I discussed this, and we don't want this for 1.4 final.

the risk is higher than the reward, and 1.5 alpha is good enough for us.
Flags: blocking1.4+
Keywords: nsbeta1nsbeta1-
Whiteboard: [fix in hand, wanted for 1.4 branch]
Target Milestone: mozilla1.4final → mozilla1.5alpha
Whiteboard: [candidate for 1.4.1]
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.