#include "webcit.h"
#include "webserver.h"
#include "groupdav.h"
+#include "calendar.h"
HashList *MsgHeaderHandler = NULL;
HashList *MsgEvaluators = NULL;
}
-void
+long
HttpStatus(long CitadelStatus)
{
long httpstatus = 502;
break;
}
-
+ return httpstatus;
}
/*
GetHash(ReadLoopHandler, IKEY(WCC->CurRoom.view), &vViewMsg);
}
if (vViewMsg == NULL) {
- return; // TODO: print message
+ return; /* TODO: print message */
}
ViewMsg = (RoomRenderer*) vViewMsg;
void display_enter(void)
{
char buf[SIZ];
- long now;
const StrBuf *display_name = NULL;
int recipient_required = 0;
int subject_required = 0;
int is_anonymous = 0;
wcsession *WCC = WC;
int i = 0;
-
- now = time(NULL);
+ long replying_to;
if (havebstr("force_room")) {
gotoroom(sbstr("force_room"));
* If the "replying_to" variable is set, it refers to a message
* number from which we must extract some header fields...
*/
- long replying_to = lbstr("replying_to");
+ replying_to = lbstr("replying_to");
if (replying_to > 0) {
char wefw[1024] = "";
char msgn[256] = "";
}
else if (!strncasecmp(buf, "wefw=", 5)) {
+ int rrtok;
+ int rrlen;
safestrncpy(wefw, &buf[5], sizeof wefw);
/* Trim down excessively long lists of thread references. We eliminate the
* second one in the list so that the thread root remains intact.
*/
- int rrtok = num_tokens(wefw, '|');
- int rrlen = strlen(wefw);
+ rrtok = num_tokens(wefw, '|');
+ rrlen = strlen(wefw);
if ( ((rrtok >= 3) && (rrlen > 900)) || (rrtok > 10) ) {
remove_token(wefw, 1, '|');
}
if (havebstr("recp") &&
havebstr("cc" ) &&
havebstr("bcc" )) {
- recipient_bad = 1;
+ recipient_bad = 1; /* TODO: and now????? */
}
}
else if (buf[0] != '2') { /* Any other error means that we cannot continue */
*/
void confirm_move_msg(void)
{
- long msgid;
char buf[SIZ];
char targ[SIZ];
- msgid = lbstr("msgid");
-
-
output_headers(1, 1, 2, 0, 0, 0);
wc_printf("<div id=\"banner\">\n");
wc_printf("<h1>");