/usr/lib/ezmlm-browse/commands/monthbydate.py is in ezmlm-browse 0.10-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from globals import *
from globalfns import *
###############################################################################
# Command: Month by date
###############################################################################
def do(ctxt):
ctxt[MONTH] = int(ctxt[MONTH])
header(ctxt, 'Messages for %(monthname(month))s %(month/100)s' % ctxt,
'bydate')
month = ctxt[EZMLM].month(ctxt[MONTH])
if ctxt[DATESORT][0] == 'd':
month.reverse()
do_list(ctxt, 'msglist', ctxt[PERPAGE],
format_timestamps(ctxt, month))
footer(ctxt)
|