0.9.4claws23
* src/news.c o check number of messages and don't return a 0 message when no messages are available o don't parse xref header anymore (closes Bug 203 I'm not getting any news)
This commit is contained in:
parent
7fa4b85ddf
commit
9a2b122024
3 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
2003-08-15 [christoph] 0.9.4claws23
|
||||
|
||||
* src/news.c
|
||||
o check number of messages and don't return a 0 message
|
||||
when no messages are available
|
||||
o don't parse xref header anymore
|
||||
|
||||
(closes Bug 203 I'm not getting any news)
|
||||
|
||||
2003-08-15 [paul] 0.9.4claws22
|
||||
|
||||
* src/common/defs.h
|
||||
|
|
|
@ -11,7 +11,7 @@ MINOR_VERSION=9
|
|||
MICRO_VERSION=4
|
||||
INTERFACE_AGE=0
|
||||
BINARY_AGE=0
|
||||
EXTRA_VERSION=22
|
||||
EXTRA_VERSION=23
|
||||
if test $EXTRA_VERSION -eq 0; then
|
||||
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
|
||||
else
|
||||
|
|
13
src/news.c
13
src/news.c
|
@ -595,7 +595,13 @@ static MsgInfo *news_parse_xover(const gchar *xover_str)
|
|||
PARSE_ONE_PARAM(ref, msgid);
|
||||
PARSE_ONE_PARAM(size, ref);
|
||||
PARSE_ONE_PARAM(line, size);
|
||||
PARSE_ONE_PARAM(xref, line);
|
||||
/*
|
||||
* PARSE_ONE_PARAM(xref, line);
|
||||
*
|
||||
* if we parse extra headers we should first examine the
|
||||
* LIST OVERVIEW.FMT response from the server. See
|
||||
* RFC2980 for details
|
||||
*/
|
||||
|
||||
tmp = strchr(xref, '\t');
|
||||
if (!tmp) tmp = strchr(line, '\r');
|
||||
|
@ -771,6 +777,11 @@ gint news_get_num_list(Folder *folder, FolderItem *item, GSList **msgnum_list)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (num <= 0) {
|
||||
remove_all_numbered_files(dir);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(last < first) {
|
||||
log_warning(_("invalid article range: %d - %d\n"),
|
||||
first, last);
|
||||
|
|
Loading…
Reference in a new issue