projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIME-Renderers: change interface.
[citadel.git]
/
webcit
/
smtpqueue.c
diff --git
a/webcit/smtpqueue.c
b/webcit/smtpqueue.c
index 9013567e70e21cf6e466c35647deeef636d5746b..350a201f03e3edf781159baf610e06c9972f93f4 100644
(file)
--- a/
webcit/smtpqueue.c
+++ b/
webcit/smtpqueue.c
@@
-296,19
+296,20
@@
void QItem_Handle_Attempted(OneQueItem *Item, StrBuf *Line, const char **Pos)
-
-
-
-
-void render_QUEUE(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *FoundCharset)
+void render_QUEUE(StrBuf *Target, WCTemplputParams *TP, StrBuf *FoundCharset)
{
{
+ wc_mime_attachment *Mime = CTX(CTX_MIME_ATACH);
WCTemplputParams SubTP;
WCTemplputParams SubTP;
+ OneQueItem* Context;
+
+ Context = DeserializeQueueItem(Mime->Data, Mime->msgnum);
+ StackContext(TP, &SubTP, Context, CTX_MAILQITEM, 0, TP->Tokens);
+ {
+ DoTemplate(HKEY("view_mailq_message"), NULL, &SubTP);
+ }
+ UnStackContext(&SubTP);
- memset(&SubTP, 0, sizeof(WCTemplputParams));
- SubTP.Filter.ContextType = CTX_MAILQITEM;
- SubTP.Context = DeserializeQueueItem(Mime->Data, Mime->msgnum);
- DoTemplate(HKEY("view_mailq_message"),NULL, &SubTP);
- FreeQueItem ((OneQueItem**)&SubTP.Context);
+ FreeQueItem (&Context);
}
void
}
void