1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-19 06:12:25 -05:00
k-9/src/com/fsck/k9/mail/internet
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
..
BinaryTempFileBody.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
BinaryTempFileMessageBody.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
DecoderUtil.java Prefer StringBuilder over StringBuffer 2011-10-05 21:50:31 -07:00
EncoderUtil.java ant astyle 2011-03-22 18:07:47 +11:00
Iso2022JpToShiftJisInputStream.java Could not handle iso-2022-jp streams which contain continuous escape 2011-03-19 18:05:07 +09:00
MimeBodyPart.java Content-type case-conversion changes. 2013-09-03 19:54:18 -04:00
MimeHeader.java combined nested if statements in MimeHeader.hasToBeEncoded 2012-07-06 14:35:01 +02:00
MimeMessage.java Content-type case-conversion changes. 2013-09-03 19:54:18 -04:00
MimeMultipart.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
MimeUtility.java Standardize line breaks within headers. 2013-09-03 19:54:17 -04:00
TextBody.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00