Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Fix a syntax error | Mark Longair | 2013-05-16 | -1/+1 |
| | ||||
* | Add a test for parsing a malformed email | Mark Longair | 2013-05-16 | -0/+15 |
| | | | | | | | This example email indicates the wrong charset and includes a top bit set character despite Content-Transfer-Encoding: 7bit - nonetheless, we should be able to convert it to UTF-8 and interpret the character correctly. | |||
* | Add a test for a missing final MIME boundary | Mark Longair | 2013-05-16 | -0/+9 |
| | | | | | | | | | If there is a missing final MIME boundary, the behaviour of Alaveteli with the TMail backend was to still parse the attachment, but with the new code it currently throws an exception. This commit adds a test that asserts that the attachment should be parsed despite the email being malformed in this way. | |||
* | Add a test to check that anything in the MIME epilogue is ignored | Mark Longair | 2013-05-16 | -0/+11 |
| | | | | | | | | | | | There is currently a difference in behaviour in the parsing of nested MIME multipart attachments between the Mail and TMail based backends. This commit adds a test that will pass if the behaviour is the same as the the old (TMail-based) version, which I believe is correct according to RFC 1521. The example email has a PNG attachment after the final MIME boundary, and the RFC says that anything after the final boundary ("the epilogue") should be ignored. | |||
* | Add tests for TNEF attachments that should be handled | Mark Longair | 2013-05-16 | -0/+24 |
| | | | | | | | | | | | These two cases were ignored previously, and we need to make sure that they still are under the switch from TMail to Mail. One TNEF attachment is a heavily truncated one from a real example from Alaveteli that has no personal data in it. The other is an example from the tests in the distribution of the tnef package for Ubuntu 1.4.9-1 - it's an HTML version of the US constitution. | |||
* | Replace use of have_text with contain from webrat or match | Matthew Landauer | 2013-01-29 | -1/+1 |
| | ||||
* | Wrap specs on the extraction of RFC-822 headers in code that sets the ENV ↵ | Louise Crow | 2012-12-11 | -10/+14 |
| | | | | timezone. TMail renders headers using localtime, which is not ideal, but we're migrating away from it anyway, so I'm not sure it's worth delving into the internals of TMail to fix it. | |||
* | Add specs for attachment attributes. | Louise Crow | 2012-12-06 | -0/+20 |
| | ||||
* | Add a spec for some basic consistency in content types, url part numbers, ↵ | Louise Crow | 2012-12-06 | -0/+80 |
| | | | | filenames, and within rfc822 subjects. | |||
* | Convert example URL to spec. | Louise Crow | 2012-12-06 | -0/+9 |
| | ||||
* | Stub the close method on the object we're passing to the zip file extraction ↵ | Louise Crow | 2012-12-06 | -1/+3 |
| | | | | function. | |||
* | Rename _get_attachment_text_internal_one_file to ↵ | Louise Crow | 2012-12-06 | -3/+2 |
| | | | | get_attachment_text_one_file as it is now an externally-accessed method of the mail handler module. | |||
* | Move methods for getting the text out of attachments to the mail handler module. | Louise Crow | 2012-12-06 | -1/+21 |
| | ||||
* | Adding methods for getting the content type of a mail part, and getting ↵ | Louise Crow | 2012-12-04 | -0/+54 |
| | | | | header strings from a mail. | |||
* | Rewrite and move spec so that it tests the mail handler method. | Louise Crow | 2012-12-04 | -0/+7 |
| | ||||
* | Add specs for getting name, email and formatted address - make them pass ↵ | Louise Crow | 2012-12-04 | -0/+50 |
| | | | | with the mail backend. | |||
* | Add a method for setting the from address on a plain email fixture. | Louise Crow | 2012-12-04 | -6/+8 |
| | ||||
* | Add methods for finding out if there is an empty return path on a mail and ↵ | Louise Crow | 2012-12-04 | -0/+32 |
| | | | | getting the auto-submitted field. | |||
* | Move method for getting the to, cc and envelope-to addresses of a mail to ↵ | Louise Crow | 2012-12-04 | -0/+29 |
| | | | | the mail handler. | |||
* | Add specs for the mail handler getting the from name and from address from ↵ | Louise Crow | 2012-12-03 | -0/+56 |
| | | | | an email. | |||
* | Use get_part_body in spec. | Louise Crow | 2012-12-03 | -1/+1 |
| | ||||
* | Move TMail extensions to mail handler. | Louise Crow | 2012-11-15 | -0/+11 |
| | ||||
* | Factor out method for getting a mail object from a fixture file. | Louise Crow | 2012-11-15 | -4/+0 |
| | ||||
* | Move TMail monkey patch to MailHandler Tmail backend. | Louise Crow | 2012-11-15 | -0/+16 |