k9mail/k-9 — pull request #127 by dzan (2012-03-04 10:14:23+00:00)
Title: Settings autocomplete

Hi all,

This pull request is long overdue. Currently I am the only tester and so their probably will be some things which need yet to change. Please give me feedback!

This was my first time using git and I know my commits could have been more structured! I learned a lot and I think this shows in my later commits.

What this adds is the following ( in short ):

A new wizard for configuring the email accounts. The wizard will try to autodetect the settings. After detection the settings are presented to the user which should in almost all cases just have to press "Ok".

The detection uses a mozilla webservice and some techniques used in Thunderbird:
https://developer.mozilla.org/en/Thunderbird/Autoconfiguration
https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat

There is support for:
DNS MX lookup
custom usernames
manual configuration is still possible
no "blind" autoconfiguration, there is feedback to the user about what is happening
other things I don't think of right now

One "big feature" which isn't included yet is support for importing accounts. The first activity in the wizard lists accounts found on the device and is written so it's easy to search and show exported ones on the SD card.