Modify

Opened 16 years ago

Closed 16 years ago

#60 closed defect (fixed)

mailto_trac + german umlaut problem

Reported by: alex@… Owned by: bas
Priority: major Milestone:
Component: email2trac Version: 0.13
Keywords: Cc: german, umlaut, mailto_trac

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

Attachments (0)

Change History (3)

comment:1 Changed 16 years ago by bas

  • Status changed from new to assigned

I shall try to fix it and test with this email header

comment:2 Changed 16 years ago by anonymous

I am just trying to close some tickets. But for i debug some more can you attach an email to this ticket with faulty email. The above does not work.

And which versions of email2trac do you use? Just to make sure you have the newest version.

comment:3 Changed 16 years ago by bas

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

I have test it with an email with umlaut in the subject line and i fixed the bug in trunk

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.