Commit Graph

28 Commits

Author SHA1 Message Date
Marc Blank
9218bd8c88 Try to handle IMAP/POP mime types better
* When we get a "generic" type, try to infer a better one from
  the filename extension (as Exchange already does)
* Also, remove unused method

Bug: 6713335
Change-Id: I540a92aabd13bc1d30ce1838129a86f5eaf3564e
2012-06-22 11:38:33 -07:00
Marc Blank
cb9035a87d Remove final protocol references in non-sync code
* Generalize debug settings
* Generalize setup from account manager (Settings)
* Remove unused protocol code

Change-Id: I7f49384058c1a2105936a85d4bace2c771e201ec
2012-06-20 16:57:37 -07:00
Marc Blank
384c467d0e Remove direct references to protocols
* Use services.xml info instead
* Reduced # references from 40+ to 4 (others to be removed ASAP)

Change-Id: I756001148e09ece2f49258bced000e60685ba953
2012-06-19 20:52:27 -07:00
Marc Blank
c9864af20f Replace literal "eas", "pop3", "imap" with constants
Change-Id: If3f4712acd39663e548f271ffaa2fb7b4f5656d4
2012-06-19 15:34:16 -07:00
Marc Blank
48e8026b34 Remove exchange-specific layouts (merge into incoming)
* Configure everything via services.xml, removing lots of
  duplicated layouts and code
* Check that this works on phone and tablet
* More to do:  get rid of abstract class with only one
  subclass (AccountServerBaseFragment), remove as many
  references in Email2 to specific protocols (a lot has
  already been done)

Change-Id: I071e0aba029e2ccb9631d13b2b6d41ab74b1341b
2012-06-19 14:03:30 -07:00
Marc Blank
ff3fcf9163 Consolidate authenticator code
* Also, remove obsolete CalendarProviderStub

Change-Id: If20ae050f1750abb510c1ca5b9fcdad0115852ad
2012-06-18 12:58:23 -07:00
Marc Blank
aa9a5a703a Save/restore draft info (ref message/quote pos) in EmailProvider
Bug: 6581587
Change-Id: Idd7f8b905611ef567f8f5de3d936bb8f919c869a
2012-06-05 08:58:41 -07:00
Marc Blank
db1b26f5ea Add account check Uri to detect duplicated mailboxes
Bug: 6578066
Change-Id: Ibebd310ea35093abebbd54fb30839ba0d399e872
2012-05-31 15:31:45 -07:00
Marc Blank
21102f6323 Handle inline images in EmailProvider
* Automatically prefetch these attachments
* Use AttachmentProvider properly (to get output stream)

Bug: 6437156
Change-Id: I6f594e3b9b6286cb19d7fb7390aa6979ba492c22
2012-05-30 10:04:43 -07:00
Marc Blank
6fb157c90c Fix problem with empty content disposition
* And while we're at it, fix a repeating crash related to
  notifications.

Bug: 6561972
Change-Id: I44f2441bf7bfe4b364a605c0d7c8bae83229837a
2012-05-25 16:18:39 -07:00
Marc Blank
9037a64ead Make viewables handling more sensible in MimeUtility
* We had some relatively complicated rules for what was "viewable",
  but there are cases missed.
* It's simplest to consider all non-attachment images and text as
  viewable.

Bug: 6524411
Change-Id: I57844916af4ded683e69932b4effd5546ec42ad2
2012-05-21 13:01:46 -07:00
Marc Blank
0d296a66d8 Port new EmailClientConfigurationManager code from jb-dev
Change-Id: Ibb07415a2b78e6160999d44b21ccd24406447f88
2012-05-21 09:52:19 -07:00
Marc Blank
d10022e4da Update jb-dev to jb-ub-mail 2012-05-16 16:23:34 -07:00
Marc Blank
afb34d19ee Rework reply/forward to use unified-style data
* Deprecate fields no longer used in Body table

Bug: 6393061

Change-Id: I48f41063667f6edef43756b16acdfd1e65ef554c
2012-04-30 08:38:47 -07:00
Paul Westbrook
6a7d10e1c3 Merge 'goog/jb-dev' into 'goog/jb-ub-mail'
Change-Id: I29ca31c2ec3b773a484e8c3b3880057852479125
2012-04-27 15:01:08 -07:00
Marc Blank
c6f104f2a7 Add quoted text start pos to Body table
Change-Id: Ie80fbb686382a8d38ea09d05b4757a82169be3fc
2012-04-27 13:37:56 -07:00
Paul Westbrook
7a7508c641 Build against the ICS SDK
Change-Id: Ib6429d43420b1382c8dfc81d30568c62cbbf92b6
2012-04-27 12:40:13 -07:00
Marc Blank
80e19ad650 Make sure TempDirectory is set when using EmailServiceProxy
Bug: 6361241

Change-Id: I8fa328ec0b61a8f1710634bc8b946076efba0dcf
2012-04-23 13:54:30 -07:00
Marc Blank
2af67eba86 Restore some sanity to IMAP sync
* Ignore the small/large message distinction
* Get rid of loadMore; let the sync always get the text parts
  (this avoids parsing a potentially huge message just to get at
  the text parts)
* If we have a multipart/alternative and it has html text, don't
  bother loading the plain part

Bug: 6325247

Change-Id: Ib557b20c517f0dee2b5f67d0d57d5304a0cba936
2012-04-22 22:03:03 -07:00
Marc Blank
37e2be2556 Don't use SYNCED_MESSAGE_URI for POP3/Drafts/Outbox/Search
Bug: 6330408
Change-Id: I84114d95fe4cf2a0137e2e9108ba349e58e21788
2012-04-16 13:44:38 -07:00
Marc Blank
83ecabc8b2 Add logging
Change-Id: Id1c929591ad0fb451c8a8ba391f80108e2febb5d
2012-04-12 18:10:41 -07:00
Marc Blank
733aef1204 Rework of attachment loading/saving
* Respect the destination for attachment downloading
* Rework attachment load/save for IMAP/POP

Change-Id: I94fdcea5ec6d397aba554fec3753b2de9cb5f1dd
2012-04-12 17:24:41 -07:00
Marc Blank
3a4448facc Add various virtual folders
* Added a starred folder for each account (only shows up if there
  are any starred messages)
* Added a combined starred folder in the "combined" account
* Use proper icon for the starred folders
* Set proper counts for these folders

TODO: There are probably a bunch of loose ends related to how the
counts in these virtual folders get updated

Change-Id: I72fcf543716583bdfcbdd50ffcac3b023a9b59e6
2012-04-10 09:26:09 -07:00
Marc Blank
8e4b457b86 Add column for eventual thread topic
Change-Id: I23a66d3ddf2fbdce516c161017713809af458d3d
2012-04-06 15:32:46 -07:00
Marc Blank
d52710242e Set "supports settings" on EAS folders (database upgrade)
Change-Id: I19324d25846e8f12a5e4783c427291d4fc13bd3d
2012-04-04 14:20:24 -07:00
Paul Westbrook
d4308f800a Fix build
Change-Id: I66a1e49ee5c84342e056fbdba23b0c83039812c3
2012-04-04 12:05:28 -07:00
Marc Blank
d731127c05 Set draftType in outgoing messages and return it
Change-Id: Ie95d04b5da8125f846e40c3d703655f35d599cd1
2012-04-04 10:39:47 -07:00
Marc Blank
2ed66c48c6 Copy emailcommon to email2
* Also, fix Exchange logging
* Also, get notifications working
* Refactor former Email class into MailActivityEmail

Change-Id: Id726f4178134485f4a3ec1ee317861d984d659a0
2012-03-15 10:11:50 -07:00