$Log$
+Revision 1.6 2001/02/22 17:05:19 brian
+* Updated CxMsList() API to allow users to select only NEW messages, or only
+the LAST x messages (<-skel). THIS WILL REQUIRE CLIENT-SIDE CHANGES IN ORDER
+FOR YOUR CLIENT TO WORK!
+
Revision 1.5 2001/02/19 14:50:58 brian
* Fixed problem in which unconnected clients send messages to file descriptor
0 (stdout), Now CxClSend() should do nothing if not connected.
Revision 1.2 2001/02/07 22:41:51 brian
* Updated ChangeLog to conform to Citadel/UX standards (kinda) :)
+
** Message Input/Output
**/
CXLIST CxMsInfo(CXLIST);
-CXLIST CxMsList();
+CXLIST CxMsList(int,int);
int CxMsLoad(const char *, int, MESGINFO *);
int CxMsSaveOk(const char *);
int CxMsSave(MESGINFO);
/**
** CxMsList(): Retrieve a list of messages in the current room.
**/
-CXLIST CxMsList() {
+CXLIST CxMsList(int list_type, int number_messages) {
int rc;
char buf[255], *malleable;
CXLIST msgs = NULL;
DPF((DFA,"Retrieving list of messages from the server."));
- CxClSend("MSGS");
+ switch( list_type ) {
+ case(2):
+ // MSGS LAST|%d
+ break;
+
+ case(1):
+ CxClSend("MSGS NEW");
+ break;
+
+ default:
+ CxClSend("MSGS");
+ break;
+ }
rc = CxClRecv( buf );
if( CHECKRC(rc, RC_LISTING) ) {