void *vMsg;
message_summary *Msg;
char cmd[256] = "";
- int i;
+ int i, r;
wcsession *WCC = WC;
HashPos *at;
const char *HashKey;
jsonMessageListHdr();
}
- switch(ViewMsg->GetParamsGetServerCall(
+ if (ViewMsg->GetParamsGetServerCall != NULL) {
+ r = ViewMsg->GetParamsGetServerCall(
&Stat,
&ViewSpecific,
oper,
- cmd, sizeof(cmd)))
+ cmd, sizeof(cmd)
+ );
+ } else {
+ r = 0;
+ }
+ switch(r)
{
case 400:
case 404:
it = GetNewHashPos(WCC->attachments, 0);
while (GetNextHashPos(WCC->attachments, it, &len, &Key, &vAtt)) {
att = (wc_mime_attachment *)vAtt;
+ if (att->length == 0)
+ continue;
encoded_length = ((att->length * 150) / 100);
encoded = malloc(encoded_length);
if (encoded == NULL) break;
hprintf("HTTP/1.1 404 %s\n", ChrPtr(partnum));
output_headers(0, 0, 0, 0, 0, 0);
hprintf("Content-Type: text/plain\r\n");
+ begin_burst();
wprintf(_("An error occurred while retrieving this part: %s/%s\n"),
ChrPtr(partnum), ChrPtr(filename));
end_burst();
hprintf("HTTP/1.1 404 %s\n", ChrPtr(Buf));
output_headers(0, 0, 0, 0, 0, 0);
hprintf("Content-Type: text/plain\r\n");
+ begin_burst();
wprintf(_("An error occurred while retrieving this part: %s\n"),
ChrPtr(Buf));
end_burst();
Handler->ViewCleanup = ViewCleanup;
Put(ReadLoopHandler, IKEY(RoomType), Handler, NULL);
-
}
void