[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Limit the size of the header of a newsgroup to fetch
From: |
Allen Yang |
Subject: |
Re: Limit the size of the header of a newsgroup to fetch |
Date: |
Wed, 28 Mar 2012 19:14:56 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (windows-nt) |
>>>>> "Katsumi" == Katsumi Yamaoka <yamaoka@jpl.org> writes:
Katsumi> Allen Yang wrote:
>> I am not an expert of Gnus, and I found an annoying thing
>> about Gnus is that it will exceed the memory limit when
>> fetching a newsgroup which reserves a huge number of
>> articles.
>> For example:
>> In my case, there are more than 370,000 articles reside
>> in a newsgroup on the nntp server. Although I set only
>> 100 when Gnus asked me the number of articles to fetch
>> before I entered this group, Gnus still run into the
>> trouble.
>> Is there any solution?
Katsumi> Maybe `gnus-newsgroup-maximum-articles' is yours:
Katsumi> ,---- (info "(gnus)Selecting a Group") | [...] | In
Katsumi> groups in some news servers, there might be a big
Katsumi> gap between a | few very old articles that will
Katsumi> never be expired and the recent ones. | In such a
Katsumi> case, the server will return the data like `(1 .
Katsumi> 30000000)' | for the `LIST ACTIVE group' command,
Katsumi> for example. Even if there are | actually only the
Katsumi> articles 1-10 and 29999900-30000000, Gnus doesn't |
Katsumi> know it at first and prepares for getting 30000000
Katsumi> articles. However, | it will consume hundreds
Katsumi> megabytes of memories and might make Emacs get |
Katsumi> stuck as the case may be. If you use such news
Katsumi> servers, set the | variable
Katsumi> `gnus-newsgroup-maximum-articles' to a positive
Katsumi> number. The | value means that Gnus ignores
Katsumi> articles other than this number of the | latest
Katsumi> ones in every group. For instance, the value 10000
Katsumi> makes Gnus | get only the articles
Katsumi> 29990001-30000000 (if the latest article number is
Katsumi> | 30000000 in a group). Note that setting this
Katsumi> variable to a number might | prevent you from
Katsumi> reading very old articles. The default value of the
Katsumi> | variable `gnus-newsgroup-maximum-articles' is
Katsumi> `nil', which means Gnus | never ignores old
Katsumi> articles. | [...] `----
Problem solved. I just disabled Gnus to fetch old headers by:
(setq gnus-fetch-old-headers nil)
Another solution is to make old articles as read by press c in
the group view.
Thanks for your help.