Updated account access settings for Wirtualna Polska

See:

http://poczta.wp.pl/info-pomoc-konfig.html?action=more&id=161

SSL encryption on by default, IMAP access.

Change-Id: I60d4f264a50e8f2c501493c64ef5e631a690073b
Signed-off-by: Tomasz Potega <tomasz.potega@gmail.com>
Email widget displays valid emails then lots of empty entries with 01/01/1970

In the next situation:
- POP3 Account
- No remove messages from mail server Email account setting
- Single mailbox is selected

When a mail is deleted from local inbox, the mail is dropped to trash folder, but a null message
flagged with deleted status is created to allow sincronization with the pop3 server to not download
the message again. When the message is purged from server, the null message is also removed
from inbox

The mail activity make use of Message.FLAG_LOADED_SELECTION when query the mail database,
and is not showing this null messages, but the email widget, on "Simple mailbox selection" is
not using Message.FLAG_LOADED_SELECTION flag to discriminate this "null messages".

Change-Id: I35a147738167847834ab3898141bbd9817cd71cd
Fix dangling comma in 'to view' when filled from intent.

When using the ACTION_SENDTO intent with a scheme of mailto: a dangling comma was inserted into the 'to view' causing
an invalid email address error when attempting to send. This fix simply checks if the string is empty before splitting
on a comma and adding the addresses. The use case here is if the intent only includes bcc or cc fields and not the to field.

Change-Id: Iefc6a8fc1070da00a23f46a97a4b3229243cd0cc
Signed-off-by: Michael Novak <michael.novakjr@gmail.com>
Use DatabaseUtils method instead of query()

Use DatabaseUtils.longForQuery() method instead of SQLiteDatabase.query().
This reduces processing cost of database cursor.

Change-Id: Ibe53645b32a4de1ab6518f879e564ddf8f75d822
email occasionally crash on boot complete

Email.setServicesEnabledAsync()
  --> create EmailProvider.db     (1)
  --> setLocaleFromConfiguration  (2)

Because Email.setServicesEnabledAsync runs async, the following
`checkDatabases` may occasionally delete the EmailProvider.db between
step (1) and step (2), which will crash `setServicesEnabledAsync' in
step (2).

`checkDatabases` before `setServicesEnabledAsync' to avoid the race condition
Merge "Revert "Restore the account using SetupData after rotating the screen.""

Change-Id: I034b6cfcecd856bc31476de0d91acb1e3369d69b
Fix exception print due to wrong database operation.

The Account table is not in EmailProviderBody database.
The onOpen() in BodyDatabaseHelper always cause exception error message print.

Change-Id: I94cc39655b74dce5d7dc48c8661b18076b1a5075
Signed-off-by: esther <esther530@gmail.com>
Use deleteDatabase method to improve safety of DB file handling

Deleting .db files can make malformed database issues
when WAL(write ahead logging) mode is enabled.
EmailProvider doesn't use WAL mode currently,
But it has to be fixed because it might cause the problem in the
future.

Change-Id: Ie0313c5d253f3080401b00b197e7cbf97f25423c
Use recycled views in the cursor adapter

The AccountSelectorAdapter now uses recycled views as requested by the TODO tags in the code.
newView() and bindView() are now implemented and getView() is left to the ancestor class.

Change-Id: Id062ed508b2890300ab03f7321aec046ef12ff16
Merge changes Ie0313c5d,Ibe53645b

* changes:
  Use deleteDatabase method to improve safety of DB file handling
  Use DatabaseUtils method instead of query()
am e16fd4c6: Merge changes Ie0313c5d,Ibe53645b

* commit 'e16fd4c68455fe0d800e534f1d77eb6f5e3fc72b':
  Use deleteDatabase method to improve safety of DB file handling
  Use DatabaseUtils method instead of query()
Merge "Email widget displays valid emails then lots of empty entries with 01/01/1970"
am d0b6e7cf: Merge "Email widget displays valid emails then lots of empty entries with 01/01/1970"

* commit 'd0b6e7cf0856ee3a940b86ce55617206f534ff01':
  Email widget displays valid emails then lots of empty entries with 01/01/1970
Merge "Use recycled views in the cursor adapter"
am 10f89bc2: Merge "Use recycled views in the cursor adapter"

* commit '10f89bc2b484eff210daa50adf5739190ab11a3b':
  Use recycled views in the cursor adapter
Merge "Updated account access settings for Wirtualna Polska"
am cdd0ff24: Merge "Updated account access settings for Wirtualna Polska"

* commit 'cdd0ff246463dddc05b1eea293dec505ebe20780':
  Updated account access settings for Wirtualna Polska
Merge "email occasionally crash on boot complete"
am 6d99a15a: Merge "email occasionally crash on boot complete"

* commit '6d99a15a0bc050caa34dcd30152e203dd4358da0':
  email occasionally crash on boot complete
Merge "Fix exception print due to wrong database operation."
Merge "Fix dangling comma in 'to view' when filled from intent."