Closed Bug 1019331 Opened 10 years ago Closed 10 years ago

Copied messages are flagged as available offline, but they arent and this is never fixed

Categories

(MailNews Core :: Backend, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1113275

People

(Reporter: rkent, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [maildir])

I'm tracing out some issue with maildir, and it looks likes when messages are copied, their offline flag is set from the msgHdr but they are not actually offline. Eventually when you try to get the message, the initialization of the message stream fails, but the offline flag is never reset.
Whiteboard: [maildir]
So this code looks off in nsIImapMailFolder.cpp: 8361 fakeHdr->SetMessageOffset(curOfflineStorePos); 8362 char storeToken[100]; 8363 PR_snprintf(storeToken, sizeof(storeToken), "%lld", curOfflineStorePos); 8364 fakeHdr->SetStringProperty("storeToken", storeToken); 8365 fakeHdr->OrFlags(nsMsgMessageFlags::Offline | nsMsgMessageFlags::Read, &resultFlags); Near the end of a message copy, we are setting the storeToken to an offset (while it should be a file name in the maildir case), then flagging the message as offline before the maildir store has successfully stored it (which will fail).
This is closely related to the failure we are seeing in the maildir version of test_offlineCopy.js and could be the main problem there.
Bug 1113275 fixes test_offlineCopy.js
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.