1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-04 16:45:09 -05:00
k-9/tests
Joe Steele 1ca1ef5c84 Content-type case-conversion changes.
Don't convert the content-type to lower case in
MimeMessage.getContentType.  The content-type may have optional parameters
that are case sensitive (boundary, name).

In removing the lower-case conversion from getContentType, a review was
made for inappropriate case-sensitive comparisons which use data obtained
with getContentType.  The only ones found were in isMimeType in both
Message and MimeBodyPart.

Case-sensitive instances of isMimeType were made case-insensitive.  Also,
isMimeType was moved from Message to MimeMessage for symmetry with
MimeBodyPart (MimeMessage & MimeBodyPart are similar and contain a good
bit of duplication such as this).

The unit test required fixing now that the case of the boundary text is
preserved.

References:

Commits 2c5186 and dc4002 added the toLowerCase to getContentType in
MimeMessage & MimeBodyPart (Issue 94).

Later, commit 50cd60 removed the toLowerCase addition from MimeBodyPart
(Issue 1289).
2013-09-03 19:54:18 -04:00
..
src/com Content-type case-conversion changes. 2013-09-03 19:54:18 -04:00
.classpath Simplify Eclipse setup. 2013-05-31 18:00:45 -04:00
.project Simplify Eclipse setup. 2013-05-31 18:00:45 -04:00
AndroidManifest.xml summary: updated build scripts for testing. 2012-05-30 18:02:57 -05:00
ant.properties summary: updated build scripts for testing. 2012-05-30 18:02:57 -05:00
build.xml updated target name "test" in tests/build.xml for Android SDK Tools Revision 20.0.3 / 21 RC4 2012-09-22 09:43:58 -05:00
clean-tests.sh summary: updated build scripts for testing. 2012-05-30 18:02:57 -05:00
proguard.cfg Upgrade us to android-14 infrastructure 2011-10-27 12:41:24 -04:00
project.properties Compile the test project with API 15 2012-04-25 14:09:53 +00:00