Closed
Bug 13710
Opened 25 years ago
Closed 24 years ago
[FEATURE] Compact folder for POP
Categories
(MailNews Core :: Backend, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
M15
People
(Reporter: scottputterman, Assigned: jefft)
References
Details
Need to implement Compact folder for POP.
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.
Updated•25 years ago
|
Target Milestone: M11 → M15
Comment 6•25 years ago
|
||
M15, clearing dependency on 11091
Comment 7•25 years ago
|
||
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.
Summary: [DOGFOOD] [FEATURE] Compact folder for POP → [FEATURE] Compact folder for POP
Assignee | ||
Comment 10•25 years ago
|
||
Removing [DOGFOOD] tag.
Comment 11•25 years ago
|
||
Removing PDT annotation now that dogfood nomination has been removed
Whiteboard: [PDT-]
Assignee | ||
Comment 12•24 years ago
|
||
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
Comment 13•24 years ago
|
||
Jeff, let's find simplifying assumptions here. It wouldn't be the end of the world if we did this synchronously.
Assignee | ||
Comment 14•24 years ago
|
||
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.
Assignee | ||
Comment 15•24 years ago
|
||
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
Comment 16•24 years ago
|
||
can you just do it when the url is finished, by registering a url listener?
Assignee | ||
Comment 17•24 years ago
|
||
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.
Reporter | ||
Comment 18•24 years ago
|
||
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.
Assignee | ||
Comment 19•24 years ago
|
||
Yes, that's the way we should go. I would like to have another bug address this.
Assignee | ||
Comment 20•24 years ago
|
||
*** Bug 34047 has been marked as a duplicate of this bug. ***
Comment 21•24 years ago
|
||
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
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•