Custom Query (332 matches)
Results (235 - 237 of 332)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#104 | fixed | tiny syntax error in email2trac.py.in | bas | anonymous |
Description |
Index: email2trac.py.in =================================================================== --- email2trac.py.in (revision 233) +++ email2trac.py.in (working copy) @@ -687,7 +687,7 @@ else: value = field.get('value') options = field.get('options') - if value and options and value not in options + if value and options and value not in options: value = options[int(value)] if self.DEBUG > 10: |
|||
#103 | fixed | get_param of Format/DelSp returns None | bas | debacle@… |
Description |
The following two lines in email2trac fail: format = email.Utils.collapse_rfc2231_value(part.get_param('Format')).lower() delsp = email.Utils.collapse_rfc2231_value(part.get_param('DelSp')).lower() This workaround helps, but I'm not sure, whether it is correct: format = email.Utils.collapse_rfc2231_value(part.get_param('Format') or "").lower() delsp = email.Utils.collapse_rfc2231_value(part.get_param('DelSp') or "").lower() |
|||
#102 | fixed | Can't update tickets from an email | bas | tim@… |
Description |
When I reply to a ticket and follow the conventions outlined in the documentation, the ticket does not update (either using commands in the subject or text in the body of the email). I see the following dump in my log: Nov 16 01:19:28 wilsonserver email2trac: TypeError?: unsupported operand type(s) for -: 'int' and 'datetime.datetime' Nov 16 01:19:28 wilsonserver email2trac: Traceback (most recent call last): Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 1284, in <module> tktparser.parse(sys.stdin) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 845, in parse if self.ticket_update(m, spam_msg): Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 647, in ticket_update tkt.save_changes(self.author, body_text, when) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/model.py", line 230, in save_changes when_ts = to_timestamp(when) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/util/datefmt.py", line 56, in to_timestamp diff = dt - _epoc Nov 16 01:19:28 wilsonserver email2trac: TypeError?: unsupported operand type(s) for -: 'int' and 'datetime.datetime' I am using Trac 0.11.2, Fedora 7, Apache 2.2.7-1, Python 2.5-15 and email2trac-0.40 |