Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 4313:7a6c5c117879
Fix handling of non-ascii in realname in the nosy mailer...
...this used to mangle the email address making it unusable when
replying. Thanks to intevation for funding the fix.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Sun, 27 Dec 2009 20:05:32 +0000 |
| parents | d47245c2530a |
| children | ac3f80e39d7a |
comparison
equal
deleted
inserted
replaced
| 4312:594eee0d43fc | 4313:7a6c5c117879 |
|---|---|
| 1179 | 1179 |
| 1180 --===============0639262320==-- | 1180 --===============0639262320==-- |
| 1181 ''') | 1181 ''') |
| 1182 | 1182 |
| 1183 def testEnc01(self): | 1183 def testEnc01(self): |
| 1184 self.db.user.set(self.mary_id, | |
| 1185 realname='\xe4\xf6\xfc\xc4\xd6\xdc\xdf, Mary'.decode | |
| 1186 ('latin-1').encode('utf-8')) | |
| 1184 self.doNewIssue() | 1187 self.doNewIssue() |
| 1185 self._handle_mail('''Content-Type: text/plain; | 1188 self._handle_mail('''Content-Type: text/plain; |
| 1186 charset="iso-8859-1" | 1189 charset="iso-8859-1" |
| 1187 From: mary <mary@test.test> | 1190 From: mary <mary@test.test> |
| 1188 To: issue_tracker@your.tracker.email.domain.example | 1191 To: issue_tracker@your.tracker.email.domain.example |
| 1200 '''FROM: roundup-admin@your.tracker.email.domain.example | 1203 '''FROM: roundup-admin@your.tracker.email.domain.example |
| 1201 TO: chef@bork.bork.bork, richard@test.test | 1204 TO: chef@bork.bork.bork, richard@test.test |
| 1202 Content-Type: text/plain; charset="utf-8" | 1205 Content-Type: text/plain; charset="utf-8" |
| 1203 Subject: [issue1] Testing... | 1206 Subject: [issue1] Testing... |
| 1204 To: chef@bork.bork.bork, richard@test.test | 1207 To: chef@bork.bork.bork, richard@test.test |
| 1205 From: "Contrary, Mary" <issue_tracker@your.tracker.email.domain.example> | 1208 From: =?utf-8?b?w6TDtsO8w4TDlsOcw58sIE1hcnk=?= |
| 1209 <issue_tracker@your.tracker.email.domain.example> | |
| 1206 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> | 1210 Reply-To: Roundup issue tracker <issue_tracker@your.tracker.email.domain.example> |
| 1207 MIME-Version: 1.0 | 1211 MIME-Version: 1.0 |
| 1208 Message-Id: <followup_dummy_id> | 1212 Message-Id: <followup_dummy_id> |
| 1209 In-Reply-To: <dummy_test_message_id> | 1213 In-Reply-To: <dummy_test_message_id> |
| 1210 X-Roundup-Name: Roundup issue tracker | 1214 X-Roundup-Name: Roundup issue tracker |
| 1211 X-Roundup-Loop: hello | 1215 X-Roundup-Loop: hello |
| 1212 X-Roundup-Issue-Status: chatting | 1216 X-Roundup-Issue-Status: chatting |
| 1213 Content-Transfer-Encoding: quoted-printable | 1217 Content-Transfer-Encoding: quoted-printable |
| 1214 | 1218 |
| 1215 | 1219 |
| 1216 Contrary, Mary <mary@test.test> added the comment: | 1220 =C3=A4=C3=B6=C3=BC=C3=84=C3=96=C3=9C=C3=9F, Mary <mary@test.test> added the= |
| 1221 comment: | |
| 1217 | 1222 |
| 1218 A message with encoding (encoded oe =C3=B6) | 1223 A message with encoding (encoded oe =C3=B6) |
| 1219 | 1224 |
| 1220 ---------- | 1225 ---------- |
| 1221 status: unread -> chatting | 1226 status: unread -> chatting |
