David Murray wrote:

> In netscape.public.mozilla.mail-news the people heard David Bienvenu say 
> these wise words:
> 
>> I've done a little work on the purging of old news messages, but I don't 
>> know when it will be finished. Soon, I hope.
> 
I've landed some support for this. There's no UI for it yet, so the only 
thing you can do is set per-newsgroup server defaults, which apply to 
all the newsgroups on that server. Here are some example prefs:


user_pref("mail.server.server1.daysToKeepBodies", 10); // for offline 
msg body use, not used yet.
user_pref("mail.server.server1.daysToKeepHdrs", 0);    // ignored unless 
retainBy == 2
user_pref("mail.server.server1.keepUnreadOnly", false);
user_pref("mail.server.server1.numHdrsToKeep", 500); // ignored unless 
retainBy == 3
user_pref("mail.server.server1.retainBy", 3);

The retainBy settings are as follows:
  nsMsgRetainAll = 0;
  nsMsgRetainByServerDefaults = 1; // not meaningful for server 
settings, only meaningful for a newsgroup.
  nsMsgRetainByAge = 2;
  nsMsgRetainByNumHeaders = 3;

So, the example prefs say to keep only 500 hundred headers.

The keepUnreadOnly pref is orthogonal to the other hdr retention 
settings. For example, if set to true, and numHdrsToKeep is 500, we'll 
only keep unread headers, and we'll only keep up to 500 of them.

The retention settings are applied when you open a newsgroup, before new 
headers are downloaded.

I haven't tested this a lot, so there are likely to be some problems, 
but feel free to try it out.  If you find any problems, you can add them 
to the comments for http://bugzilla.mozilla.org/show_bug.cgi?id=17217

- David

> 



Reply via email to