Custom Query (332 matches)
Results (7 - 9 of 332)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#60 | fixed | mailto_trac + german umlaut problem | bas | alex@… |
Description |
Hi, if i set mailto_link in email2trac.config to 1 and receive a email with a german Umlaut (ä,ü,ö) in the subject, i get the following error: May 14 14:53:00 localhost email2trac: Traceback (most recent call last): May 14 14:53:00 localhost email2trac: File "/usr/local/bin/email2trac", line 1140, in ? tktparser.parse(sys.stdin) May 14 14:53:00 localhost email2trac: File "/usr/local/bin/email2trac", line 728, in parse self.new_ticket(m, component) May 14 14:53:00 localhost email2trac: File "/usr/local/bin/email2trac", line 674, in new_ticket mailto = self.html_mailto_link(tkt['summary'], ticket_id, body_text) May 14 14:53:00 localhost email2trac: File "/usr/local/bin/email2trac", line 894, in html_mailto_link str = 'mailto:%s?Subject=%s&Cc=%s' %( May 14 14:53:00 localhost email2trac: File "urllib.py", line 1110, in quote res = map(safe_map.__getitem__, s) May 14 14:53:00 localhost email2trac: KeyError: u'\xdc' I use email2trac with fetchmail + procmail fetching mails from exchange. If i deactivate "mailto_link" everything works fine. Enclosed is a mail header that leads to that problem described above: Received: from mail.exchange.local ([192.168.0.101]) by mail.exchange.local ([192.168.0.101]) with mapi; Wed, 14 May 2008 12:30:38 +0200 From: XXX To: support Date: Wed, 14 May 2008 12:30:37 +0200 Subject: =?Windows-1252?Q?=DCberTestTicket2?= Thread-Topic: =?Windows-1252?Q?=DCberTestTicket2?= Thread-Index: AQHIta2Mj/TcnoIsRUu4khLyH1a30A== Message-ID: <1E80D902A0C956449784BCD6BCDF18157FB6DB62DC@mail.exchange.local> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 04 X-MS-Exchange-Organization-AuthSource: mail.exchange.local X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: acceptlanguage: en-US, de-DE Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Is there a possible workaround? Thanks for the help, alex |
|||
#45 | fixed | email2trac | bas | Anand <anandkapur@…> |
Description |
Hi, I was wondering if you could tell me how to install this in a windows environment. Thanks, Anand |
|||
#35 | fixed | In trac 0.11 email2trac fails in notify and in ticket_update methods | bas | andrei2102@… |
Description |
I started to port this script for trac 0.11 and I founded two errors. The first is in the notify method and it is described in the #34 ticket. The solution, for me, was to remove the hack. # create false {abs_}href properties, to trick Notify() # self.env.abs_href = Href(self.get_config('project', 'url')) self.env.href = Href(self.get_config('project', 'url')) The env members(abs_href and href) don't need to be overwritten. The second problem was that in ticket_modify method. When saving the modifications made on a ticket it was passed an integer as the modification time. Traceback (most recent call last): File "/home/andrei/workspace/etf/trunk/share/bin/email2trac.py", line 1062, in ? tktparser.parse(file('/tmp/tests/tm.eml', 'r')) File "/home/andrei/workspace/etf/trunk/share/bin/email2trac.py", line 663, in parse if self.ticket_update(m): File "/home/andrei/workspace/etf/trunk/share/bin/email2trac.py", line 542, in ticket_update tkt.save_changes(self.author, body_text, when) File "/home/andrei/workspace/etf/trunk/vendor/trac-0.11dev/trac/ticket/model.py", line 207, in save_changes when_ts = to_timestamp(when) File "/home/andrei/workspace/etf/trunk/vendor/trac-0.11dev/trac/util/datefmt.py", line 55, in to_timestamp diff = dt - _epoc TypeError: unsupported operand type(s) for -: 'int' and 'datetime.datetime' In trac 0.11 if the modification time is None then datetime.now() is assumed. So the solution is to send a None. A patch is attached. |