* add matts iterator
authorWilfried Göesgens <willi@citadel.org>
Sat, 13 Dec 2008 10:43:38 +0000 (10:43 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 13 Dec 2008 10:43:38 +0000 (10:43 +0000)
webcit/msg_renderers.c

index 15c8b953de6d07ca0a91963de6b9ec19b0ebfd7c..9080b8ced0057d14a2a90baa4894d56e6aad82c2 100644 (file)
@@ -356,6 +356,10 @@ void tmplput_MAIL_SUMM_ALLRCPT(StrBuf *Target, int nArgs, WCTemplateToken *Token
 }
 
 
+HashList *iterate_get_mailsumm_All(StrBuf *Target, int nArgs, WCTemplateToken *Tokens, void *Context, int ContextType)
+{
+       return WC->summ;
+}
 
 void examine_time(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset)
 {
@@ -1030,6 +1034,9 @@ InitModule_MSGRENDERERS
                         summcmp_rsender,
                         CTX_MAILSUM);
 
+       RegisterIterator("MAIL:SUMM:MSGS", 0, NULL, iterate_get_mailsumm_All,
+                        NULL,NULL, CTX_MAILSUM, CTX_NONE);
+
        RegisterNamespace("MAIL:SUMM:DATESTR", 0, 0, tmplput_MAIL_SUMM_DATE_STR, CTX_MAILSUM);
        RegisterNamespace("MAIL:SUMM:DATENO",  0, 0, tmplput_MAIL_SUMM_DATE_NO,  CTX_MAILSUM);
        RegisterNamespace("MAIL:SUMM:N",       0, 0, tmplput_MAIL_SUMM_N,        CTX_MAILSUM);