Closed Bug 13710 Opened 25 years ago Closed 24 years ago

[FEATURE] Compact folder for POP

Categories

(MailNews Core :: Backend, defect, P1)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: scottputterman, Assigned: jefft)

References

Details

Need to implement Compact folder for POP.
Status: NEW → ASSIGNED
Target Milestone: M11
Blocks: 10791
QA Contact: lchiang → huang
Jeff - any chance we'll get this in Beta 1?
I'll try my best.
Blocks: 11091
(target milestone is M11 or M12 - add to mail beta tracking bug)
The chance to get this in beta 1 is slim at the moment. We don't have the
mailbox protocol support for comporessing the folder. The code hasn't been
ported over. There will be too much work to get it work today.
It's way too much work for less than a day I think. What it needs to be done
are:

o First make sure that the database is dirty, there are messages being deleted,
expunged bytes not equals to zero.
o Create a temp folder & a temp database
o Open the original folder & database
o Read through the database and start copying messages which haven't been
deleted to the temp folder. Make sure to parse the message lines and add the
message headers to the database.
o When done with copying the messages. Close the temp folder and database.
o Rename the old folder and database to something else and new temp folder and
database to be the original folder and database.
o Refresh/rebuild the RDF graph since all keys/offsets are different.
o This should be implemented as an asynchronous operation. We don't want to
tieing up user interface especially when compressing all folders.
Target Milestone: M11 → M15
M15, clearing dependency on 11091
No longer blocks: 11091
Phil, you forgot the dependency removal.  Making it so ...
Summary: [FEATURE] Compact folder for POP → [DOGFOOD] [FEATURE] Compact folder for POP
I think compacting pop3 mail folder is pretty important. There is no way for
users to reclaim the disk space without extensively knowing what
x-mozilla-status flags means. We might want to consider doing this earlier than
later.
Whiteboard: [PDT-]
Putting on [PDT-] radar...sorry...
Summary: [DOGFOOD] [FEATURE] Compact folder for POP → [FEATURE] Compact folder for POP
Removing [DOGFOOD] tag.
Removing PDT annotation now that dogfood nomination has been removed
Whiteboard: [PDT-]
Priority: P3 → P1
Whiteboard: ETA 03/30/00
This is a big task especially do it asynchronously. Currently, we don't have the 
guts supproted in mailbox url, service and protocol. We also need to do handle 
one or more or all folders compression.
Whiteboard: ETA 03/30/00 → ETA 03/30/00 - seems impossible
Jeff, let's find simplifying assumptions here. It wouldn't be the end of the
world if we did this synchronously.
No, it's not the end of the world. What I meant was ETA on 03/30/00 seems not 
feasible to do it asynchronously.
Fix checked in. There are still have some UI synchronous problem such as 
reselecting the previous selected message. Since, compacting is asynchronous now 
reselecting the previous selected message requires a lot of work we should 
address it in another bug.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
can you just do it when the url is finished, by registering a url listener?
I don't think so. I can implement url listener interface for compact folder 
state but won't help much it will get call each time we do a CopyMessage(). 
OnStopRequest() essentially does the same thing. We need to tell the js when 
compact is done and the new key gets communicate to the js. A side note: we also 
need to update the compact status periodically.
why don't we do it the same way we do when we finish a delete or move?  We can 
send off a folder listener event using OnFolderEvent() and then the js can catch 
it.  If we need to send in more information we can either add a new function to 
the folder listener or we can modify OnFolderEvent to take an extra nsISupports 
parameter.
Yes, that's the way we should go. I would like to have another bug address this.
*** Bug 34047 has been marked as a duplicate of this bug. ***
Blocks: 34047
Verified on WinNT 05-12-21-M16 commercial build.
Marking as verified.

>reselecting the previous selected message requires a lot of work we should 
>address it in another bug.

Jeff, what's above problem? Any bug already addressed above problem? 
Status: RESOLVED → VERIFIED
Whiteboard: ETA 03/30/00 - seems impossible
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.