Back to index

webcit  8.12-dfsg
Functions
dav_report.c File Reference
#include "webcit.h"
#include "webserver.h"
#include "dav.h"

Go to the source code of this file.

Functions

void dav_report (void)
int ParseMessageListHeaders_EUID (StrBuf *Line, const char **pos, message_summary *Msg, StrBuf *ConversionBuffer)
int DavUIDL_GetParamsGetServerCall (SharedMessageStatus *Stat, void **ViewSpecific, long oper, char *cmd, long len, char *filter, long flen)
int DavUIDL_RenderView_or_Tail (SharedMessageStatus *Stat, void **ViewSpecific, long oper)
int DavUIDL_Cleanup (void **ViewSpecific)
void InitModule_REPORT (void)

Function Documentation

void dav_report ( void  )

Definition at line 61 of file dav_report.c.

{
       char datestring[256];
       time_t now = time(NULL);

       http_datestring(datestring, sizeof datestring, now);
       const char *req = ChrPtr(WC->upload);

       syslog(LOG_DEBUG, "REPORT: \033[31m%s\033[0m", req);

       hprintf("HTTP/1.1 500 Internal Server Error\r\n");
       dav_common_headers();
       hprintf("Date: %s\r\n", datestring);
       hprintf("Content-Type: text/plain\r\n");
       wc_printf("An internal error has occurred at %s:%d.\r\n", __FILE__ , __LINE__ );
       end_burst();
       return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int DavUIDL_Cleanup ( void **  ViewSpecific)

Definition at line 811 of file dav_propfind.c.

{
       /* Note: wDumpContent() will output one additional </div> tag. */
       /* We ought to move this out into template */
       wDumpContent(1);

       return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int DavUIDL_GetParamsGetServerCall ( SharedMessageStatus Stat,
void **  ViewSpecific,
long  oper,
char *  cmd,
long  len,
char *  filter,
long  flen 
)

Definition at line 784 of file dav_propfind.c.

{
       Stat->defaultsortorder = 0;
       Stat->sortit = 0;
       Stat->load_seen = 0;
       Stat->maxmsgs  = 9999999;

       snprintf(cmd, len, "MSGS ALL|||2");
       return 200;
}

Here is the caller graph for this function:

int DavUIDL_RenderView_or_Tail ( SharedMessageStatus Stat,
void **  ViewSpecific,
long  oper 
)

Definition at line 801 of file dav_propfind.c.

{
       
       DoTemplate(HKEY("msg_listview"),NULL,&NoCtx);
       
       return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void InitModule_REPORT ( void  )

Definition at line 105 of file dav_report.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int ParseMessageListHeaders_EUID ( StrBuf *  Line,
const char **  pos,
message_summary Msg,
StrBuf *  ConversionBuffer 
)

Definition at line 772 of file dav_propfind.c.

{
       Msg->euid = NewStrBuf();
       StrBufExtract_NextToken(Msg->euid,  Line, pos, '|');
       Msg->date = StrBufExtractNext_long(Line, pos, '|');
       
       return StrLength(Msg->euid) > 0;
}

Here is the caller graph for this function: