am 1c78324f: am d40977d1: am 8100a2dc: Server sending unsupported policies will cause NPE
Add static method to get temp dir in Email.

I need to be able to get the temp dir from anywhere without Context
for the new IMAP parser.

Change-Id: I3bf7d34059399a8253c0760ebc392804ea434412
am 019f14cb: am 1a9ea35b: am 3778b3ed: Try autodiscover with bare name if we get 401 with address
am 19025fda: am c7931b07: am e0ebcd8e: Test for NPE in EasSyncService during alarm() call
Merge "Add static method to get temp dir in Email."
Simplify MessageRetrievalListener.

Main motivation: not to make the new IMAP parser too complecated.

- Removed messageRetrieved.
  Motivation:
  - It's not easy to call messageRetrieved() at the proper timing
    from the new IMAP parser, and this method wasn't used anyway.

- Renamed messageFinished to messageRetrieved.
  And removed the "number" and "ofTotal" arguments.
  Motivation:
  - They weren't used.  Also there was inconsistency about
    what to pass as "numebr".  (i.e. 0-based or 1-based?)  There was
    even a bug that caused passing a wrong number.

Change-Id: If92dbfe681b78a0eea8125188ede63a8f00dcf49
Merge "Simplify MessageRetrievalListener."
Don't sync when the background data system setting is off.

Bug 2494703

Change-Id: Ia6f4c9fc86cdcb5ca3276141cb84b4effb6ee87c
Merge (-sours) commit '9c9e757917b51cb87c1880b8e8ae14bfed5d84f9' into oxygen_4.3

* commit '9c9e757917b51cb87c1880b8e8ae14bfed5d84f9':
  Add static method to get temp dir in Email.
Merge (-sours) commit 'dbbd2ba22c63f38c268c1c33e285cfcc50f6da27' into oxygen_4.3

* commit 'dbbd2ba22c63f38c268c1c33e285cfcc50f6da27':
  Simplify MessageRetrievalListener.
Merge commit '9580f6175da4c5df4b8aa13242aaef8c922dec05' into oxygen_4.3

* commit '9580f6175da4c5df4b8aa13242aaef8c922dec05':
  Don't sync when the background data system setting is off.