headereval *Hdr;
void *vHdr;
char buf[SIZ];
- int Done = 0;
int state=0;
Buf = NewStrBuf();
/* begin everythingamundo table */
HdrToken = NewStrBuf();
- while (!Done && StrBuf_ServGetln(Buf)>=0) {
- if ( (StrLength(Buf)==3) &&
+ while (StrBuf_ServGetln(Buf) >= 0) {
+ if ( (StrLength(Buf) ==3 ) &&
!strcmp(ChrPtr(Buf), "000"))
{
- Done = 1;
if (state < 2) {
if (Msg->MsgBody->Data == NULL)
Msg->MsgBody->Data = NewStrBuf();
}
-void
+long
HttpStatus(long CitadelStatus)
{
+ /* TODO: this doesn't realy work currently, the HTTP status isn't printed to the browser! */
long httpstatus = 502;
switch (MAJORCODE(CitadelStatus))
break;
}
-
+ return httpstatus;
}
/*
*/
void handle_one_message(void)
{
- long CitStatus;
+ long CitStatus = ERROR;
int CopyMessage = 0;
const StrBuf *Destination;
void *vLine;
void *vViewMsg;
void *vMsg;
message_summary *Msg;
- char cmd[256] = "";
+ char cmd[256];
int i, r;
wcsession *WCC = WC;
HashPos *at;
SharedMessageStatus Stat;
void *ViewSpecific;
+ cmd[0] = '\0';
+
if (havebstr("is_summary") && (1 == (ibstr("is_summary")))) {
WCC->CurRoom.view = VIEW_MAILBOX;
}
*/
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>");