If you "get messages" during compact of inbox, messages are lost

VERIFIED WORKSFORME

Status

MailNews Core
Backend
--
major
VERIFIED WORKSFORME
17 years ago
10 years ago

People

(Reporter: mail_john, Assigned: Navin Gupta)

Tracking

Trunk
x86
Windows ME

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
I've put this as major as mail is destroyed.

Problem:

1. If you access your mail and get a message "Do you wish to compact your
mailboxes" and select "yes"
2. While your mailbox is being compacted, click on "get messages"
3. You will see messages come down into inbox.
4. When compacting finishes the messages you just collected will be deleleted.

Expected:
If you select "get messages" during compacting inbox, request is queued while
compacting is in progress, or alert box pops up to tell you that you cannot
collect mail until compaction has completed.

I guess that if you have filters in place that move incoming mail to folders,
then it would be possible to be in the middle of compacting a mailbox other than
inbox, collect mail into the inbox, but as a filter moves it into a folder that
is in the middle of being compacted. The filtered mail would then be lost.

Comment 1

17 years ago
dup of some bug already fixed, I believe.
Assignee: bienvenu → naving
Status: UNCONFIRMED → NEW
Component: Mail Database → Mail Back End
Ever confirmed: true
(Reporter)

Comment 2

17 years ago
Then its been regressed, as I've just done it on the latest nightly build
2001111503 built a few hours ago

(Assignee)

Comment 3

17 years ago
I just checked my debug build that is few days old but it behaves as 
"expected".

(Reporter)

Comment 4

17 years ago
Can you check a build from today as per my report? 

(Assignee)

Comment 5

17 years ago
Just updated my win2k debug build, worksforme. I

In case when we are filtering messages to a folder that is being compacted, then 
we cannot write to the  folder, so we leave it inbox.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → WORKSFORME

Updated

17 years ago
QA Contact: esther → laurel
(Reporter)

Comment 6

17 years ago
And what happens when you are collecting mail into your inbox when your inbox is
being compacted (which was the original report)?

With today's build the incoming mail was destroyed.

Comment 7

17 years ago
I just used 2001-11-16-05 commerical build on win98.
I sent 4 messages from my default pop account. I deleted a few messages from my 
inbox and moved messsages from inbox to other folders.  I also have set up 
filter to local folder in this account.  I then exit and restarted the 
application. I have pref set to auto compact and the threshold is at 25kb.  
When I started mail I was prompted to compact my folder. I clicked ok. Then I 
was prompted to log into to my account with the password dlg. I was logged in 
successfully.  Then when it started compacting I did get a dlg that says the 
folder is being processed with ok button. I clicked on ok button.  Then I kept 
clicking on the get message button while the compaction was going on. Every time 
I was clicked on get msg button it displayed the folder being processed dlg and 
did not get the messages. After the compaction was over and I clicked on get 
message the messages were successfully retrieved. No corruption or loss of 
message. All this explanation that it Worksforme too. 
(Reporter)

Comment 8

17 years ago
As described it fails for me, latest nightly build (2001111503) on WinME. It may
"WorkForYou", but it "FailsForME"

Comment 9

17 years ago
Well, just tried with nov 19 commercial trunk: no problem with any data loss
when getting messages when folder compaction in progress -- no problem with
getting while inbox is being processed (message is received intact next Get Msg
after completion of compaction) or filter destination folder being compacted
while filter attempts to fire (the message is left in the inbox and is intact).

I'll let naving decide on the resolution of this bug.  

Comment 10

16 years ago
OK, I just tried this again with june5 branch build. I got the "folder busy"
dialog and kept using Get Msg and kept getting the dialog.  All incoming
messages were received in complete fashion after getting messages after the
compaction completed.  No problems seen.
Marking verified worksforme.

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.