Commit Graph

14 Commits

Author SHA1 Message Date
Joe Steele 5a46575dc2 Generally replace \n with \r\n when part of a message
This builds upon the efforts started 2 commits back where \r\n is used for
all message text and \n is only used when the text is inside an
EolConvertingEditText widget.
2013-10-11 11:39:46 -04:00
Joe Steele e20170c996 Update the tests project.
Target the same SDK version as in K-9 Mail.

Update the .classpath file as modified by the latest Eclipse ADT plugin.

Remove unused import.
2013-10-11 11:24:55 -04:00
Koji Arai 0be299fbd0 Avoid StringIndexOutOfBoundsException when the header is broken like "=?us-ascii?q?abc?= =?" 2013-09-20 13:15:57 +09:00
Koji Arai 1c7d7af975 newly added a test testDecodeEncodedWords() 2013-09-20 13:15:49 +09:00
Joe Steele c790fa73c1 Don't store the font-family preference with plain text messages.
Dynamically generate the CSS style for <pre> elements
for inclusion in the HTML <head> element when messages
are displayed.

This permits a user to change their font-family preference
for plain text messages and see the results immediately.

Obviously any old locally-stored messages that had their
font-family stored with them will continue to display using
that font-family, irrespective of the user's current
preference setting.
2013-03-01 18:48:46 -05:00
Joe Steele c21ea14af1 Fix unit tests. 2013-03-01 14:34:31 -05:00
cketti e66dd3d521 Fixed unit tests 2012-10-08 14:43:34 +02:00
cketti 602ce7be99 Trim the first value in getHeaderParameters()
Previously a value like 'text/html ; charset="windows-1251"' for the
Content-Type header would not be decoded correctly.

Fixes issue 4348
2012-06-18 04:46:46 +02:00
cketti 609cdf6bc5 Worked around API7/API10 differences in unit test
GMT-dates are formatted without "+00:00" offset in API7 emulators.
2012-06-09 01:39:15 +02:00
cketti 982f78fcc9 Explicitly set the language to be used in unit test 2012-05-30 16:02:00 +02:00
cketti e591674357 Fixed issue with TimeZone.setDefault() 2012-05-18 20:00:15 +02:00
cketti 87c11a4ad2 Updated tests to reflect changes in HtmlConverter.htmlifyMessageHeader() 2012-05-18 19:59:29 +02:00
cketti 561d2a1a44 Added unit test for MimeUtility.getHeaderParameter() 2012-03-12 17:44:53 +01:00
cketti 03d4cee14a Added tests for MimeUtility.extractTextAndAttachments() 2012-02-18 00:25:14 +01:00