DeleteHash(&((*sessions_to_kill)->ServCfg));
FreeStrBuf(&((*sessions_to_kill)->UrlFragment1));
FreeStrBuf(&((*sessions_to_kill)->UrlFragment2));
+ FreeStrBuf(&((*sessions_to_kill)->UrlFragment3));
FreeStrBuf(&((*sessions_to_kill)->WBuf));
FreeStrBuf(&((*sessions_to_kill)->HBuf));
FreeStrBuf(&((*sessions_to_kill)->CLineBuf));
/* Setting to nonzero forces a MIME type of application/octet-stream */
int force_download = 1;
- safestrncpy(buf, ChrPtr(WC->UrlFragment1), sizeof buf);
+ safestrncpy(buf, ChrPtr(WC->UrlFragment2), sizeof buf);
unescape_input(buf);
serv_printf("OPEN %s", buf);
serv_getln(buf, sizeof buf);
long msgnum = 0L;
const StrBuf *Tmpl = sbstr("template");
- msgnum = StrTol(WC->UrlFragment1);
+ msgnum = StrTol(WC->UrlFragment2);
if (StrLength(Tmpl) > 0)
read_message(WC->WBuf, SKEY(Tmpl), msgnum, 0, NULL);
else
void print_message(void) {
long msgnum = 0L;
- msgnum = StrTol(WC->UrlFragment1);
+ msgnum = StrTol(WC->UrlFragment2);
output_headers(0, 0, 0, 0, 0, 0);
hprintf("Content-type: text/html\r\n"
*/
void mobile_message_view(void) {
long msgnum = 0L;
- msgnum = StrTol(WC->UrlFragment1);
+ msgnum = StrTol(WC->UrlFragment2);
output_headers(1, 0, 0, 0, 0, 1);
begin_burst();
do_template("msgcontrols", NULL);
long msgnum = 0L;
char buf[1024];
- msgnum = StrTol(WC->UrlFragment1);
+ msgnum = StrTol(WC->UrlFragment2);
output_headers(0, 0, 0, 0, 0, 0);
hprintf("Content-type: text/plain\r\n"
/*----------------------------------------------------------------------------*/
-
-
+///void examine_subj(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
void examine_nhdr(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
{
StrBuf *FloorDiv;
FloorDiv = NewStrBuf();
- StrBufAppendBuf(FloorDiv, WCC->UrlFragment1, 0);
+ StrBufAppendBuf(FloorDiv, WCC->UrlFragment2, 0);
set_preference("floordiv_expanded", FloorDiv, 1);
WCC->floordiv_expanded = FloorDiv;
}
const char *contentType;
struct wcsession *WCC = WC;
- msgnum = StrTol(WCC->UrlFragment1);
+ msgnum = StrTol(WCC->UrlFragment2);
vcard = load_mimepart(msgnum,"1");
v = vcard_load(vcard);
WCC->UrlFragment1 = NewStrBuf();
if (WCC->UrlFragment2 == NULL)
WCC->UrlFragment2 = NewStrBuf();
+ if (WCC->UrlFragment3 == NULL)
+ WCC->UrlFragment3 = NewStrBuf();
StrBufPrintf(WCC->UrlFragment1, "%s", index[0]);
StrBufPrintf(WCC->UrlFragment2, "%s", index[1]);
+ StrBufPrintf(WCC->UrlFragment3, "%s", index[2]);
}
if ((Handler->Flags & AJAX) != 0)
begin_ajax_response();
StrEscPuts(WC->UrlFragment1);
wprintf("<br />\n");
StrEscPuts(WC->UrlFragment2);
+ wprintf("<br />\n");
+ StrEscPuts(WC->UrlFragment3);
wprintf("</PRE><hr />\n");
wprintf("Variables: <br /><PRE>\n");
dump_vars();
}
void view_mimepart(void) {
- mimepart(ChrPtr(WC->UrlFragment1),
- ChrPtr(WC->UrlFragment2),
+ mimepart(ChrPtr(WC->UrlFragment2),
+ ChrPtr(WC->UrlFragment3),
0);
}
void download_mimepart(void) {
- mimepart(ChrPtr(WC->UrlFragment1),
- ChrPtr(WC->UrlFragment2),
+ mimepart(ChrPtr(WC->UrlFragment2),
+ ChrPtr(WC->UrlFragment3),
1);
}
void view_postpart(void) {
- postpart(WC->UrlFragment1,
- WC->UrlFragment2,
+ postpart(WC->UrlFragment2,
+ WC->UrlFragment3,
0);
}
void download_postpart(void) {
- postpart(WC->UrlFragment1,
- WC->UrlFragment2,
+ postpart(WC->UrlFragment2,
+ WC->UrlFragment3,
1);
}
if (WCC != NULL) {
if (Tokens->Params[0]->lvalue == 0)
UrlBuf = WCC->UrlFragment1;
- else
+ else if (Tokens->Params[0]->lvalue == 1)
UrlBuf = WCC->UrlFragment2;
+ else
+ UrlBuf = WCC->UrlFragment3;
StrBufAppendTemplate(Target, nArgs, Tokens, Context, ContextType,
UrlBuf, 1);
int time_format_cache; /**< which timeformat does our user like? */
StrBuf *UrlFragment1; /**< first urlfragment, if NEED_URL is specified by the handler*/
StrBuf *UrlFragment2; /**< second urlfragment, if NEED_URL is specified by the handler*/
+ StrBuf *UrlFragment3; /**< third urlfragment, if NEED_URL is specified by the handler*/
StrBuf *WBuf; /**< Our output buffer */
StrBuf *HBuf; /**< Our HeaderBuffer */
StrBuf *CLineBuf; /**< linebuffering client stuff */