projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e36089c
)
Writing some cool code instead of thinking about BJG and LJG.
author
Art Cancro
<ajc@uncensored.citadel.org>
Sun, 2 Mar 2014 20:57:57 +0000
(15:57 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Sun, 2 Mar 2014 20:57:57 +0000
(15:57 -0500)
citadel/modules/nntp/serv_nntp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/nntp/serv_nntp.c
b/citadel/modules/nntp/serv_nntp.c
index 0210f789dd098a1692b6e4999e09748b248955d8..2d1a2c52e75fea6ab815678ebe926b272c0b7e3a 100644
(file)
--- a/
citadel/modules/nntp/serv_nntp.c
+++ b/
citadel/modules/nntp/serv_nntp.c
@@
-820,6
+820,23
@@
void nntp_last_next(const char *cmd) {
return;
}
return;
}
+ // ok, here we go ... fetch the msglist so we can figure out our place in the universe
+ struct nntp_msglist nm;
+ long low_water_mark = 0;
+ long high_water_mark = 0;
+
+ nm = nntp_fetch_msglist(&CC->room);
+ if ((nm.num_msgs > 0) && (nm.msgnums != NULL)) {
+ low_water_mark = nm.msgnums[0];
+ high_water_mark = nm.msgnums[nm.num_msgs - 1];
+ }
+ else {
+ cprintf("500 something bad happened\r\n");
+ return;
+ }
+
+ // ok now let's get all up in this msglist FIXME
+
cprintf("500 FIXME cmd=%d current_article_number=%ld\r\n", acmd, nntpstate->current_article_number);
}
cprintf("500 FIXME cmd=%d current_article_number=%ld\r\n", acmd, nntpstate->current_article_number);
}