|
8 | 8 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | 9 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10 | 10 | # |
11 | | -# $Id: test_mailgw.py,v 1.86 2007-09-01 16:14:21 forsberg Exp $ |
| 11 | +# $Id: test_mailgw.py,v 1.87 2007-09-01 16:30:11 forsberg Exp $ |
12 | 12 |
|
13 | 13 | # TODO: test bcc |
14 | 14 |
|
@@ -258,6 +258,88 @@ def testNewIssueAuthMsg(self): |
258 | 258 | _______________________________________________________________________ |
259 | 259 | ''') |
260 | 260 |
|
| 261 | + def testNewIssueNoAuthorInfo(self): |
| 262 | + self.db.config.MAIL_ADD_AUTHORINFO = 'no' |
| 263 | + self._handle_mail('''Content-Type: text/plain; |
| 264 | + charset="iso-8859-1" |
| 265 | + |
| 266 | + |
| 267 | +Message-Id: <dummy_test_message_id> |
| 268 | +Subject: [issue] Testing... [nosy=mary; assignedto=richard] |
| 269 | +
|
| 270 | +This is a test submission of a new issue. |
| 271 | +''') |
| 272 | + self.compareMessages(self._get_mail(), |
| 273 | + |
| 274 | +TO: [email protected], mary@test, richard@test |
| 275 | +Content-Type: text/plain; charset=utf-8 |
| 276 | +Subject: [issue1] Testing... |
| 277 | +To: mary@test, richard@test |
| 278 | +From: "Bork, Chef" <[email protected]> |
| 279 | +Reply-To: Roundup issue tracker <[email protected]> |
| 280 | +MIME-Version: 1.0 |
| 281 | +Message-Id: <dummy_test_message_id> |
| 282 | +X-Roundup-Name: Roundup issue tracker |
| 283 | +X-Roundup-Loop: hello |
| 284 | +Content-Transfer-Encoding: quoted-printable |
| 285 | +
|
| 286 | +This is a test submission of a new issue. |
| 287 | +
|
| 288 | +---------- |
| 289 | +assignedto: richard |
| 290 | +messages: 1 |
| 291 | +nosy: Chef, mary, richard |
| 292 | +status: unread |
| 293 | +title: Testing... |
| 294 | +
|
| 295 | +_______________________________________________________________________ |
| 296 | +Roundup issue tracker <[email protected]> |
| 297 | +<http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> |
| 298 | +_______________________________________________________________________ |
| 299 | +''') |
| 300 | + |
| 301 | + def testNewIssueNoAuthorEmail(self): |
| 302 | + self.db.config.MAIL_ADD_AUTHOREMAIL = 'no' |
| 303 | + self._handle_mail('''Content-Type: text/plain; |
| 304 | + charset="iso-8859-1" |
| 305 | + |
| 306 | + |
| 307 | +Message-Id: <dummy_test_message_id> |
| 308 | +Subject: [issue] Testing... [nosy=mary; assignedto=richard] |
| 309 | +
|
| 310 | +This is a test submission of a new issue. |
| 311 | +''') |
| 312 | + self.compareMessages(self._get_mail(), |
| 313 | + |
| 314 | +TO: [email protected], mary@test, richard@test |
| 315 | +Content-Type: text/plain; charset=utf-8 |
| 316 | +Subject: [issue1] Testing... |
| 317 | +To: mary@test, richard@test |
| 318 | +From: "Bork, Chef" <[email protected]> |
| 319 | +Reply-To: Roundup issue tracker <[email protected]> |
| 320 | +MIME-Version: 1.0 |
| 321 | +Message-Id: <dummy_test_message_id> |
| 322 | +X-Roundup-Name: Roundup issue tracker |
| 323 | +X-Roundup-Loop: hello |
| 324 | +Content-Transfer-Encoding: quoted-printable |
| 325 | +
|
| 326 | +New submission from Bork, Chef: |
| 327 | +
|
| 328 | +This is a test submission of a new issue. |
| 329 | +
|
| 330 | +---------- |
| 331 | +assignedto: richard |
| 332 | +messages: 1 |
| 333 | +nosy: Chef, mary, richard |
| 334 | +status: unread |
| 335 | +title: Testing... |
| 336 | +
|
| 337 | +_______________________________________________________________________ |
| 338 | +Roundup issue tracker <[email protected]> |
| 339 | +<http://tracker.example/cgi-bin/roundup.cgi/bugs/issue1> |
| 340 | +_______________________________________________________________________ |
| 341 | +''') |
| 342 | + |
261 | 343 | # BUG |
262 | 344 | # def testMultipart(self): |
263 | 345 | # '''With more than one part''' |
|
0 commit comments