%import api, api.sx as sx %include iitpl/01.tpl r=r, rss=1 %if r.getl.lim == 'big': j_ = j[-1000:] %elif not r.getl.lim: %j_ = j[-100:] %else: %j_ = j %end %ml = [(n,api.get_msg(n)) for n in j_]
%include iitpl/01m.tpl r=r, ml=ml, j=j%if mo.repto: {{mo.subj}} %else: {{mo.subj}} %end {{mo.msgfrom}} to {{mo.msgto}}
{{! sx.rend(mo.msg) }}