-void render_MIME_ICS_TPL(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset)
+void render_MIME_ICS_TPL(StrBuf *Target, WCTemplputParams *TP, StrBuf *FoundCharset)
{
+ wc_mime_attachment *Mime = CTX(CTX_MIME_ATACH);
icalproperty_method the_method = ICAL_METHOD_NONE;
icalproperty *method = NULL;
icalcomponent *cal;
icalcomponent *c;
WCTemplputParams SubTP;
WCTemplputParams SuperTP;
+
static int divcount = 0;
if (StrLength(Mime->Data) == 0) {
}
putlbstr("divname", ++divcount);
+
+
putbstr("cal_partnum", NewStrBufDup(Mime->PartNum));
putlbstr("msgnum", Mime->msgnum);
the_method = icalproperty_get_method(method);
}
- SuperTP.Context = &the_method;
- SuperTP.Filter.ContextType = CTX_ICALMETHOD,
+ StackContext (TP,
+ &SuperTP,
+ &the_method,
+ CTX_ICALMETHOD,
+ 0,
+ TP->Tokens);
StackContext (&SuperTP,
&SubTP,
"EnableOrDisableCheckButton(); \n"
);
+ UnStackContext(&SuperTP);
UnStackContext(&SubTP);
icalcomponent_free(cal);
}
-
-
-
-
void tmplput_Conflict(StrBuf *Target, WCTemplputParams *TP)
{}
}
-
void
InitModule_ICAL_SUBST
(void)