- cmd = "rt show -t ticket -f id,subject,status,queue,created %s" % (ticket_id)
+ cmd = "rt show -t ticket -f id,subject,status,queue,created,told %s" % (ticket_id)
- r_values['Created'] = calendar.timegm(time.strptime(r_values['Created']))
+ #if 'Created' in r_values:
+ # r_values['Created'] = calendar.timegm(time.strptime(r_values['Created']))
+ #else:
+ r_values['Created'] = calendar.timegm(time.localtime())
+
+ #r_values['Told'] = calendar.timegm(time.strptime(r_values['Told']))
for mta in [MTA, 'golf.cs.princeton.edu']:
try:
# This is normal operation
for mta in [MTA, 'golf.cs.princeton.edu']:
try:
# This is normal operation
server.sendmail(FROM, to, msg)
if config.bcc and not config.debug:
server.sendmail(FROM, config.email, msg)
server.sendmail(FROM, to, msg)
if config.bcc and not config.debug:
server.sendmail(FROM, config.email, msg)