email: don't report blank attachment location for dummy attachments

Change-Id: I650cd9f36180f72d2f11e26ca4e9dab499a3eaea
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: fix save attachment to storage for pop3 accounts

AttachmentUtilities#saveAttachment is never called for pop3 accounts, so the
attachment are never saved to storage when is requested by the user.
This change call saveAttachment method when the user request a sync of the pop3 account
and the document was saved previously in the internal database storage.

Change-Id: If5a857eb40b7153ef9f1278e78b98f63e35b431d
JIRA: CYAN-3762
Issue: https://jira.cyanogenmod.org/browse/CYAN-3762
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: display a "load more" button

If the message is partial loaded, then show a "load more" button instead of an attachment
bar. A partial message doesn't implies that the message contains attachments or that
all attachment were loaded.

Change-Id: Icac484a04d086c0cf3b3099b071c0c123aec2344
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: prevent NPE in EmailProvider

Check that we have loaded a valid cursor. After deleting an account some query could
return a null cursor.

Change-Id: Ief2f948a61a308d9e17af80730612a02306336e5
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: add auto fetch attachments for POP3 accounts

This change adds an option to allow auto fetch the complete POP3 message.

Change-Id: Id92a46a8f84a575160f04003f72dfe513441d356
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: hide send feedback menu if feedback uri is empty

Feedback uri is not set for stock email app. Just hide the menu if the
send feedback uri is empty.

Change-Id: I8f65975124ecf6c415ebf2e64da68bbdd5430b94
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
email: fill from autodiscover data when available

If the autodiscover was successful, then use that data to fill and validate the
Exchange account.

Change-Id: Ib265f315cf4032028f645d835aa1232074e40e96
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge remote-tracking branch 'cm/cm-11.0' into kk-mr2