projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c61baec
)
make git compileable again. more work on this topic needed.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 23 Sep 2012 14:19:47 +0000
(16:19 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 23 Sep 2012 14:19:47 +0000
(16:19 +0200)
webcit/ical_subst.c
patch
|
blob
|
history
diff --git
a/webcit/ical_subst.c
b/webcit/ical_subst.c
index 32b7382e9bdf26822d4f070104178c991cf45101..a0b2f895f7fc03561a7788cd7b60c2c896638e9d 100644
(file)
--- a/
webcit/ical_subst.c
+++ b/
webcit/ical_subst.c
@@
-95,9
+95,9
@@
void tmplput_ICalDate(StrBuf *Target, WCTemplputParams *TP)
icalcomponent *cal = (icalcomponent *) CTX(CTX_ICAL);
icalproperty *p;
icalproperty_kind Kind;
icalcomponent *cal = (icalcomponent *) CTX(CTX_ICAL);
icalproperty *p;
icalproperty_kind Kind;
- const char *str;
struct icaltimetype t;
time_t tt;
struct icaltimetype t;
time_t tt;
+ char buf[256];
Kind = (icalproperty_kind) GetTemplateTokenNumber(Target, TP, 0, ICAL_ANY_PROPERTY);
p = icalcomponent_get_first_property(cal, Kind);
Kind = (icalproperty_kind) GetTemplateTokenNumber(Target, TP, 0, ICAL_ANY_PROPERTY);
p = icalcomponent_get_first_property(cal, Kind);
@@
-134,7
+134,7
@@
void render_MIME_ICS_TPL(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *Foun
memset(&SubTP, 0, sizeof(WCTemplputParams));
SubTP.Filter.ContextType = CTX_ICAL;
memset(&SubTP, 0, sizeof(WCTemplputParams));
SubTP.Filter.ContextType = CTX_ICAL;
- ical_dezonify(cal);
+
///
ical_dezonify(cal);
/* If the component has subcomponents, recurse through them. */
c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT);
/* If the component has subcomponents, recurse through them. */
c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT);
@@
-144,7
+144,7
@@
void render_MIME_ICS_TPL(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *Foun
FlushStrBuf(Mime->Data);
DoTemplate(HKEY("ical_attachment_display"), Mime->Data, &SubTP);
FlushStrBuf(Mime->Data);
DoTemplate(HKEY("ical_attachment_display"), Mime->Data, &SubTP);
- cal_process_object(Mime->Data, cal, 0, Mime->msgnum, ChrPtr(Mime->PartNum));
+
//
cal_process_object(Mime->Data, cal, 0, Mime->msgnum, ChrPtr(Mime->PartNum));
/* Free the memory we obtained from libical's constructor */
icalcomponent_free(cal);
/* Free the memory we obtained from libical's constructor */
icalcomponent_free(cal);