Email: Add native heads up support per account (1/2)

Add native heads up notification support. User can set on every account
if he or she want this account as heads up notification or not.

This patch adds the settings for it as well the complete handling. Due
of a half broken NotificationCompat.Builder class we switch here to the
Notification.Builder class to get access to the methods we need. This is no
problem here due that we do not need compatibility on lower API's

Change-Id: Ia88d2f15f0eaf7ae024ab07dd4f74c6858f17f76
email: allow to remove an email account

Change-Id: Id9ae4f09487c918ebfae9d1854b675e52aee534f
JIRA: CYAN-3420
Issue: https://jira.cyanogenmod.org/browse/CYAN-3420
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Signed-off-by: scott <scott@ubuntu.com>

Conflicts:
	res/values/cm_strings.xml
Email: Fix for crowdin

Change-Id: I4584fd0611224e74a68b50d80e91a4f655df56fd
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>
Email: Set untranslatable

Change-Id: Ibad2857b4b1470a0e1e4b468deeebc8c6f75f385