From ba5dc5e50f314a7d2f3e0ad39fb85996e76a3162 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 2 Feb 2009 21:45:39 +0000 Subject: [PATCH] * just print "to" into messages if theres a recipient. --- webcit/msg_renderers.c | 7 ++++++- webcit/static/t/view_message.html | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index 7e1909548..0280df6a1 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -398,6 +398,11 @@ void tmplput_MAIL_SUMM_TO(StrBuf *Target, WCTemplputParams *TP) message_summary *Msg = (message_summary*) CTX; StrBufAppendTemplate(Target, TP, Msg->to, 0); } +int Conditional_MAIL_SUMM_TO(StrBuf *Target, WCTemplputParams *TP) +{ + message_summary *Msg = (message_summary*) CTX; + return StrLength(Msg->to) != 0; +} void tmplput_MAIL_SUMM_ALLRCPT(StrBuf *Target, WCTemplputParams *TP) { message_summary *Msg = (message_summary*) CTX; @@ -1137,7 +1142,7 @@ InitModule_MSGRENDERERS RegisterConditional(HKEY("COND:MAIL:SUMM:H_NODE"), 0, Conditional_MAIL_SUMM_H_NODE, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:SUMM:OTHERNODE"), 0, Conditional_MAIL_SUMM_OTHERNODE, CTX_MAILSUM); RegisterConditional(HKEY("COND:MAIL:ANON"), 0, Conditional_ANONYMOUS_MESSAGE, CTX_MAILSUM); - + RegisterConditional(HKEY("COND:MAIL:TO"), 0, Conditional_MAIL_SUMM_TO, CTX_MAILSUM); /* do we have mimetypes to iterate over? */ RegisterConditional(HKEY("COND:MAIL:MIME:ATTACH"), 0, Conditional_MAIL_MIME_ALL, CTX_MAILSUM); diff --git a/webcit/static/t/view_message.html b/webcit/static/t/view_message.html index 94a3931e5..fd13a57a8 100644 --- a/webcit/static/t/view_message.html +++ b/webcit/static/t/view_message.html @@ -10,8 +10,8 @@ onMouseOut=document.getElementById("msg").style.visibility="hidden "> @ *** -
- +
+ @@ -36,12 +36,12 @@ onMouseOut=document.getElementById("msg").style.visibility="hidden
- + - - - + + +
-- 2.39.2