From 00d91b2e12d65df06916afdc4bebca67fd27214c Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Fri, 17 Jul 2009 16:29:35 -0700 Subject: Changes to EAS: attachments, HTML text, and sending mail (without atts) * Added HTML support for Exchange 2007 and later * Modified MessageView to show HTML parts of body (if present) * Replace some unused convenience methods in Body to be ones that are more useful (i.e. retrive body for a given message id) * Made EAS sending operational * Updated SyncManager to recognize the creation of new messages and check for work to be done (i.e. starting Outbox sync) * Modified MessageView to remove EmailContent.X references * Also changed the pattern EmailContent.getContent(cursor, class) to the better new ClassName().restore(cursor) * Add a test of the utility to determine mime type from file name (since EAS doesn't provide this with attachment header information) * Fixed bug in ProviderTestUtils in which the base (EmailContent) fields weren't being checked for equality in the various subclass equality testers. Fixed a bug in saving emails that was caught by fixing this bug. --- src/com/android/exchange/Eas.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/com/android/exchange/Eas.java') diff --git a/src/com/android/exchange/Eas.java b/src/com/android/exchange/Eas.java index 03828911..dc23195e 100644 --- a/src/com/android/exchange/Eas.java +++ b/src/com/android/exchange/Eas.java @@ -44,18 +44,18 @@ public class Eas { // 6 3 months ago No Yes // 7 6 months ago No Yes - static final String FILTER_ALL = "0"; - static final String FILTER_1_DAY = "1"; - static final String FILTER_3_DAYS = "2"; - static final String FILTER_1_WEEK = "3"; - static final String FILTER_2_WEEKS = "4"; - static final String FILTER_1_MONTH = "5"; - static final String FILTER_3_MONTHS = "6"; - static final String FILTER_6_MONTHS = "7"; - static final String BODY_PREFERENCE_TEXT = "1"; - static final String BODY_PREFERENCE_HTML = "2"; + public static final String FILTER_ALL = "0"; + public static final String FILTER_1_DAY = "1"; + public static final String FILTER_3_DAYS = "2"; + public static final String FILTER_1_WEEK = "3"; + public static final String FILTER_2_WEEKS = "4"; + public static final String FILTER_1_MONTH = "5"; + public static final String FILTER_3_MONTHS = "6"; + public static final String FILTER_6_MONTHS = "7"; + public static final String BODY_PREFERENCE_TEXT = "1"; + public static final String BODY_PREFERENCE_HTML = "2"; - static final String DEFAULT_BODY_TRUNCATION_SIZE = "50000"; + public static final String DEFAULT_BODY_TRUNCATION_SIZE = "50000"; public static final int FOLDER_STATUS_OK = 1; public static final int FOLDER_STATUS_INVALID_KEY = 9; -- cgit v1.2.3