Open
Bug 730817
Opened 14 years ago
Updated 4 years ago
"Empty Junk" does not auto-compact as "Empty Trash" does
Categories
(MailNews Core :: Database, defect)
MailNews Core
Database
Tracking
(Not tracked)
NEW
People
(Reporter: ftg, Unassigned)
References
()
Details
(Whiteboard: [gs])
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120227011908
Steps to reproduce:
Right-click on "Junk" select "Empty Junk", then did an "ls -l" on the Junk file in the Mail/(server) directory
Actual results:
Filesize was not zero.
Expected results:
Filesize should be zero. "Empty Trash" auto-compacts the Trash file, and "Empty Junk" should auto-compact the Junk file.
Comment 1•14 years ago
|
||
FYI.
Current trick in "Empty Trash" is "Delete Trash folder, re-create Trash folder".
So, bug 596794 occurs. As "Unified Folder" is a virtual folder, you can see that bug any time by Unified Folders view.
Confirming.
Status: UNCONFIRMED → NEW
Component: General → Database
Ever confirmed: true
OS: Linux → All
Product: Thunderbird → MailNews Core
QA Contact: general → database
Hardware: x86_64 → All
Version: 10 → Trunk
| Reporter | ||
Comment 3•14 years ago
|
||
(In reply to WADA from comment #1)
> FYI.
> Current trick in "Empty Trash" is "Delete Trash folder, re-create Trash
> folder".
> So, bug 596794 occurs. As "Unified Folder" is a virtual folder, you can see
> that bug any time by Unified Folders view.
Clearly, any folder with an "Empty" option should be excluded from the search deletion during that operation.
Comment 4•14 years ago
|
||
Whiteboard: [gs]
Comment 5•14 years ago
|
||
(In reply to Frank Griffin from comment #3)
> (In reply to WADA from comment #1)
> > FYI.
> > Current trick in "Empty Trash" is "Delete Trash folder, re-create Trash
> > folder".
> > So, bug 596794 occurs. As "Unified Folder" is a virtual folder, you can see
> > that bug any time by Unified Folders view.
>
> Clearly, any folder with an "Empty" option should be excluded from the
> search deletion during that operation.
bienvenu, presumably the current behavior is by design. Is the design obsolete or is there no room for improvement? what are your thoughts?
Severity: normal → minor
Comment 6•14 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #5)
> (In reply to Frank Griffin from comment #3)
> > (In reply to WADA from comment #1)
> > > FYI.
> > > Current trick in "Empty Trash" is "Delete Trash folder, re-create Trash
> > > folder".
> > > So, bug 596794 occurs. As "Unified Folder" is a virtual folder, you can see
> > > that bug any time by Unified Folders view.
> >
> > Clearly, any folder with an "Empty" option should be excluded from the
> > search deletion during that operation.
>
> bienvenu, presumably the current behavior is by design. Is the design
> obsolete or is there no room for improvement? what are your thoughts?
I think whoever implemented empty junk just did it in the front end (I don't think it was me) by deleting all the messages in the folder. It would have been fairly easy to add a call to compact the junk folder just emptied in that front end code. This would be done by adding a copy service listener to the call to delete messages (the fifth param, currently null), and when the copy service listener gets notified that the copy is done, call compact on the folder, if it has the canCompact attribute.
Thundrbird version 78.6.1
As feedback:
My gmail imap account will compact/purge the 'Spam' folder when emptied.
All three of my pop accounts require manual compaction after emptying the Junk.
Updated•4 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•