MAP: MSE MAS Email Instance Support:

Squashed commit of the following:

commit ef77543631d4c5ad1d6128a20218fa1a1a0d4a15
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Thu Jan 7 18:00:58 2016 +0530

    MAP: Handle following from MAPS:

    - Fetch folder listing from database on every GET
      FolderListing request to obtain a updated list.

    - Email Folder/SubFolder listing fetch from database
      using ParentKey column instead of ParentServerId.

    - Set email subject and date info in GETMessage response
      while MCE requests for complete email body retreival.

    CRs-Fixed: 959106
    Change-Id: I4f4184785675b2deffa3be8c9dd70b2673020b51

commit 723d0002551c8247f36069ccbab97c440cec6b36
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Tue Dec 8 20:53:27 2015 +0530

    MAP: Fix sent status for email messages

    Modifcations to fetch MailBox "Type" value
    while loading folder list. Set sent status
    based on "type" value instead of "folderId"
    for emails that was SENT from the account.

    CRs-Fixed: 948753

    Change-Id: I8f0e5cf8541e5620dfb1fc9e7e36e3495c8cb199

commit 1a7066090914c6d61b20eb82cc4b46947b77f814
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Mon Oct 12 20:01:37 2015 +0530

    MAP: Handle following cleanup for MAPS:

    - Remove MNS notificationReg pending messages  before
      requesting MNS connect for saved request.

    - Handle dynamic email account SDP even when MAS connected.

    - Move AppObserver Account and emailContentObserver onChange()
      handling to worker threads instead of main thread.

    Change-Id: I557213da4f1080b44809a5f78d51d58c385cb8f0
    CRs-Fixed: 921943

commit 99ab8706f2921c37f2e88bb2d1b2831add0e60e5
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Mon Sep 21 21:28:04 2015 +0530

    MAP: Parse last occurence of "END:BBODY" in BMessage.

    Allow pushMessage email with multiple "ENG:BBODY" tags
    in email body message. Parse till last occurence of
    END:BBODY to retreive the actual email text body.

    Remove a '/' for all occurrences of <CRLF>'/END:MSG'.

    CRs-Fixed: 912765
    Change-Id: I2d65454c0dcbbf263fe80cc09e1240d3427be2d4

commit d794f9481bd1e750459ffec218c4304832ca1145
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Mon Sep 14 21:10:29 2015 +0530

    MAP: Handle pushMsg Email no orginator and multiple recipients case.

    Always initialize Orginator emailAddress and displayName from
    parseEmailAccounts and  corresponding email Instance create.
    Update remoteFeature Mask to handle MNS event reports.

    Add support for multiple recipient vcards in pushMessage email type.

    CRs-Fixed: 908437

    Change-Id: I127ba555d43a0ea027910a50b847e31e80484539

commit d5a95cb3da72710baa1e72857632dbf90baad893
Author: Hemant Gupta <hemantg@codeaurora.org>
Date:   Wed Aug 26 20:50:31 2015 +0530

    MAP: Fix null pointer exception in MAP Code

    Fix null pointer exception in MAP code

    Change-Id: I0de143096d83a79f967d276ee809e9c6acee4bbd

commit 00c794daeadd884a70829b37df8322be12e7d585
Author: Ashwini Munigala <AshwiniM@codeaurora.org>
Date:   Sun Jul 19 17:21:51 2015 +0530

    MAP: Support MAP Email Instance over L2CAP

    Support MAP Server 1.2 Email Instance as per
    new design and arch changes for SDP registeration
    and Obex server socket creation.

    Change-Id: I81cb0ef459f6c7962945f64847831a7c5c611a67

Change-Id: I1fb4e406928655fab0a06331c22d6fba0fcae3aa
16 files changed