Modify

Opened 15 years ago

Closed 15 years ago

#102 closed enhancement (fixed)

Can't update tickets from an email

Reported by: tim@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.4
Keywords: Cc:

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

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by bas

  • Status changed from new to assigned

Which version of trac did you specify in email2trac.conf?

comment:2 Changed 15 years ago by tim@…

That's a pretty fast response :-) At first, I was running Trac v 0.10.4 and I just left the version in email2trac.conf set at the default, but then I changed it to the entire version string (0.10.4) after I saw it wasn't working.

At that point, I started to get emails returned to me about the version being unsupported. So, I upgraded.

After the upgrade, I changed the version to my entire version 0.11.2. I then started getting the returned emails about still being an unsupported version. So, I changed the version in email2trac.conf back to what I thought was the default (I think 0.10). And, then I got the message above.

Your question prompted me to do something else: change the Trac version in the config to 0.11. This fixed the issue.

I'm guessing that 0.11.x is the only version supported by email2trac and the version string needs to be set to just 0.11--otherwise you get the errors I was experiencing. It's fixed now!

comment:3 Changed 15 years ago by bas

  • Type changed from defect to enhancement

trac version 0.10 and 0.11 are supported by email2trac. enmail2trac can not parse 0.11.2 or 0.10.4, maybe we must fix this

comment:4 Changed 15 years ago by bas

  • Resolution set to fixed
  • Status changed from assigned to closed

did not receive a update

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.