Closed Bug 320744 Opened 17 years ago Closed 17 years ago

no way to clear downloads.rdf. Should be a way to clear or remove the file entirely.


(Thunderbird :: General, defect)

Not set


(Not tracked)



(Reporter: eviljeff, Assigned: mscott)



(Keywords: fixed1.8.1)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Thunderbird version 1.5 Beta 2 (20051006)

Thunderbird writes to downloads.rdf every time you extract an attachment from an email, because it uses the download manager of Firefox.  Trouble is there is no gui for this in Thunderbird and thus no way to clear the list.  This isn't a problem at first or for people who only occasionally get attachments but if you're a member of mailing lists where every email contains 1 or more attachments and you get 200+ a day you can see a problem because this has to be written (and possibly parsed, i'm not sure) on every attachment.

There should either be a way of accessing and clearing this list, or, preferably, it to be removed entirely in Thunderbird.  

I even tried setting "" manually, because in Firefox that would auto-clear the downloads list, but it doesn't seem to work in Thunderbird.

Reproducible: Always

Steps to Reproduce:
1. extract lots of attachments from emails
2. repeat

Actual Results:  
Thunderbird becomes slower and slower the longer you use it for because of the size of downloads.rdf

Expected Results:  
Thunderbird doesn't become any slower.
confirming - we need to either prune it ourselves or give the user a UI to do so.
Ever confirmed: true
Version: unspecified → Trunk
Target Milestone: --- → Thunderbird2.0
this *might* be as easy as setting: to a value of 1 (remove from the download manager when thunderbird exits)

in all-thunderbird.js

That's assuming that the code which uses this pref is built and used by thunderbird in toolkit's download manager. I haven't tried to verify that yet.
alas, we use the download manager in xpfe which doesn't support this behavior, otherwise that pref change would have fixed it :)
As the user has no way of accessing the downloads list within thunderbird would it be safe just to auto-clear it on program start or exit?  I'm assuming theres a function to clear the list that can be called.
Alternatively its trivial to delete 'downloads.rdf' in the profile folder:

var profilefolder = Components.classes[";1"]
                     .get("ProfD", Components.interfaces.nsIFile);
if (profilefolder.exists()) profilefolder.remove(false);
Depends on: 239136
this is going to be fixed on the trunk as part of 239136. 
Flags: blocking-thunderbird2+
Closed: 17 years ago
Resolution: --- → FIXED
this is now fixed for thunderbird 2 via 239136
Keywords: fixed1.8.1
You need to log in before you can comment on or make changes to this bug.