@@ -0,0 +1,60 | |||
|
1 | Message-ID: <001101ca9762$293d68c0$0600a8c0@osiris> | |
|
2 | From: "jsmith" <jsmith@somenet.foo> | |
|
3 | To: <redmine@somenet.foo> | |
|
4 | Subject: Japanese Character pattern matching | |
|
5 | Date: Sun, 17 Jan 2010 11:45:18 +0100 | |
|
6 | MIME-Version: 1.0 | |
|
7 | Content-Type: multipart/alternative; | |
|
8 | boundary="----=_NextPart_000_000E_01CA976A.8AF5E9E0" | |
|
9 | X-Priority: 3 | |
|
10 | X-MSMail-Priority: Normal | |
|
11 | X-Mailer: Microsoft Outlook Express 6.00.2900.2869 | |
|
12 | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 | |
|
13 | ||
|
14 | This is a multi-part message in MIME format. | |
|
15 | ||
|
16 | ------=_NextPart_000_000E_01CA976A.8AF5E9E0 | |
|
17 | Content-Type: text/plain; | |
|
18 | charset="iso-2022-jp" | |
|
19 | Content-Transfer-Encoding: quoted-printable | |
|
20 | ||
|
21 | It should be noted that I am receiving emails using pop and the patch in = | |
|
22 | Issue #2420 but I don't think the problem lies with this. | |
|
23 | ||
|
24 | When I try and send emails to the redmine server with Japanese = | |
|
25 | characters in them it appears to work apart from the pattern matching. | |
|
26 | ||
|
27 | For example if I send an email with the following keywords. | |
|
28 | ||
|
29 | Tracker: =1B$B3+H/=1B(B | |
|
30 | ||
|
31 | ------=_NextPart_000_000E_01CA976A.8AF5E9E0 | |
|
32 | Content-Type: text/html; | |
|
33 | charset="iso-2022-jp" | |
|
34 | Content-Transfer-Encoding: quoted-printable | |
|
35 | ||
|
36 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
|
37 | <HTML><HEAD> | |
|
38 | <META content=3D"text/html; charset=3Diso-2022-jp" = | |
|
39 | http-equiv=3DContent-Type> | |
|
40 | <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18702"> | |
|
41 | <STYLE></STYLE> | |
|
42 | </HEAD> | |
|
43 | <BODY bgColor=3D#ffffff> | |
|
44 | <DIV><FONT size=3D2 face=3DArial> | |
|
45 | <P>It should be noted that I am receiving emails using pop and the patch = | |
|
46 | in=20 | |
|
47 | Issue <A class=3D"issue status-1 priority-2"=20 | |
|
48 | title=3D"Fetching emails from an POP server (New)"=20 | |
|
49 | href=3D"http://www.redmine.org/issues/2420">#2420</A> but I don't think = | |
|
50 | the=20 | |
|
51 | problem lies with this.</P> | |
|
52 | <P>When I try and send emails to the redmine server with Japanese = | |
|
53 | characters in=20 | |
|
54 | them it appears to work apart from the pattern matching.</P> | |
|
55 | <P>For example if I send an email with the following keywords.</P> | |
|
56 | <P>Tracker: = | |
|
57 | =1B$B3+H/=1B(B</P></FONT></DIV></BODY></HTML> | |
|
58 | ||
|
59 | ------=_NextPart_000_000E_01CA976A.8AF5E9E0-- | |
|
60 |
@@ -209,6 +209,14 class MailHandlerTest < ActiveSupport::TestCase | |||
|
209 | 209 | Role.anonymous.add_permission!(:add_issues) |
|
210 | 210 | assert_equal false, submit_email('ticket_without_from_header.eml') |
|
211 | 211 | end |
|
212 | ||
|
213 | def test_add_issue_with_japanese_keywords | |
|
214 | tracker = Tracker.create!(:name => '開発') | |
|
215 | Project.find(1).trackers << tracker | |
|
216 | issue = submit_email('japanese_keywords_iso_2022_jp.eml', :issue => {:project => 'ecookbook'}, :allow_override => 'tracker') | |
|
217 | assert_kind_of Issue, issue | |
|
218 | assert_equal tracker, issue.tracker | |
|
219 | end | |
|
212 | 220 | |
|
213 | 221 | def test_should_ignore_emails_from_emission_address |
|
214 | 222 | Role.anonymous.add_permission!(:add_issues) |
General Comments 0
You need to be logged in to leave comments.
Login now