Made newsgroups header fetching final
This commit is contained in:
parent
5490677244
commit
2256134a74
@ -4308,6 +4308,8 @@ v0.33.19 26-Oct-2001
|
|||||||
automatic set to reasonable defaults.
|
automatic set to reasonable defaults.
|
||||||
The color editor now has a rangecheck.
|
The color editor now has a rangecheck.
|
||||||
Rewrote calling of the color editor for Sparc systems.
|
Rewrote calling of the color editor for Sparc systems.
|
||||||
|
Added setup items in global and message areas to limit the
|
||||||
|
fetching of newsgroups headers.
|
||||||
|
|
||||||
mbsebbs:
|
mbsebbs:
|
||||||
Added menu 317, change FS editor shortcut keys to (Emacs/
|
Added menu 317, change FS editor shortcut keys to (Emacs/
|
||||||
@ -4463,6 +4465,7 @@ v0.33.19 26-Oct-2001
|
|||||||
Fixes for Sparc systems.
|
Fixes for Sparc systems.
|
||||||
File forwarding now really depends on the downlink billing
|
File forwarding now really depends on the downlink billing
|
||||||
flag.
|
flag.
|
||||||
|
Now limits fetching of newsheaders according to area setting.
|
||||||
|
|
||||||
mbfile:
|
mbfile:
|
||||||
During check the file databases are reset to filemode 0660.
|
During check the file databases are reset to filemode 0660.
|
||||||
|
@ -80,7 +80,7 @@ extern char *replyaddr;
|
|||||||
/*
|
/*
|
||||||
* Internal functions
|
* Internal functions
|
||||||
*/
|
*/
|
||||||
int do_one_group(List **, char *, char *);
|
int do_one_group(List **, char *, char *, int);
|
||||||
int get_xover(char *, long, long, List **);
|
int get_xover(char *, long, long, List **);
|
||||||
int get_xoverview(void);
|
int get_xoverview(void);
|
||||||
void tidy_artlist(List **);
|
void tidy_artlist(List **);
|
||||||
@ -222,7 +222,7 @@ void ScanNews(void)
|
|||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
}
|
}
|
||||||
Nopper();
|
Nopper();
|
||||||
if (do_one_group(&art, Msgs.Newsgroup, Msgs.Tag) == RETVAL_ERROR)
|
if (do_one_group(&art, Msgs.Newsgroup, Msgs.Tag, Msgs.MaxArticles) == RETVAL_ERROR)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -245,7 +245,7 @@ void ScanNews(void)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int do_one_group(List **art, char *grpname, char *ftntag)
|
int do_one_group(List **art, char *grpname, char *ftntag, int maxarticles)
|
||||||
{
|
{
|
||||||
List *tmp;
|
List *tmp;
|
||||||
char temp[128], *resp;
|
char temp[128], *resp;
|
||||||
@ -269,10 +269,10 @@ int do_one_group(List **art, char *grpname, char *ftntag)
|
|||||||
total = atol(strtok(NULL, " "));
|
total = atol(strtok(NULL, " "));
|
||||||
start = atol(strtok(NULL, " "));
|
start = atol(strtok(NULL, " "));
|
||||||
end = atol(strtok(NULL, " '\0'"));
|
end = atol(strtok(NULL, " '\0'"));
|
||||||
Syslog('n', "GROUP total %d, start %d, end %d", total, start, end);
|
Syslog('n', "GROUP total %d, start %d, end %d, max %d", total, start, end, maxarticles);
|
||||||
if ((msgs.MaxArticles) && (total > msgs.MaxArticles)) {
|
if ((maxarticles) && (total > maxarticles)) {
|
||||||
start = end - msgs.MaxArticles;
|
start = end - maxarticles;
|
||||||
total = msgs.MaxArticles;
|
total = maxarticles;
|
||||||
Syslog('n', "NEW: total %d, start %d, end %d", total, start, end);
|
Syslog('n', "NEW: total %d, start %d, end %d", total, start, end);
|
||||||
}
|
}
|
||||||
if (!total) {
|
if (!total) {
|
||||||
@ -302,7 +302,7 @@ int do_one_group(List **art, char *grpname, char *ftntag)
|
|||||||
|
|
||||||
tidy_artlist(art);
|
tidy_artlist(art);
|
||||||
|
|
||||||
if ((msgs.MaxArticles) && (fetched == msgs.MaxArticles))
|
if ((maxarticles) && (fetched == maxarticles))
|
||||||
Syslog('!', "Warning: the maximum articles value for this group might be to low");
|
Syslog('!', "Warning: the maximum articles value for this group might be to low");
|
||||||
|
|
||||||
return RETVAL_OK;
|
return RETVAL_OK;
|
||||||
|
Reference in New Issue
Block a user