$Log$
+Revision 1.8 2001/03/13 03:41:03 brian
+* Added SLRP support (but doesn't seem to work yet...)
+
Revision 1.7 2001/02/22 17:14:12 brian
* Added MSGS_* flags to make using the new CxMsList() api easier to code for.
Revision 1.2 2001/02/07 22:41:51 brian
* Updated ChangeLog to conform to Citadel/UX standards (kinda) :)
-
int CxMsLoad(const char *, int, MESGINFO *);
int CxMsSaveOk(const char *);
int CxMsSave(MESGINFO);
+void CxMsMark( long unsigned int );
/**
** Room/Floor Commands
return(999);
}
+
+/**
+ ** CxMsMark(): Mark message(s) as read.
+ **/
+void CxMsMark( long unsigned int msgid ) {
+char buf[1024];
+int rc;
+
+ DPF((DFA, "Marking message %s read.", msgid));
+
+ if( msgid == MSGS_ALL ) {
+ sprintf( buf, "SLRP highest" );
+
+ } else {
+ sprintf( buf, "SLRP %ld", msgid );
+ }
+
+ CxClSend( buf );
+ rc = CxClRecv( buf );
+
+ if( rc == RC_OK ) {
+ DPF((DFA, "Done."));
+
+ } else {
+ DPF((DFA, "Failed."));
+ }
+}