k9mail/k-9 — pull request #141 by dzan (2012-04-28 15:49:55+00:00)
Title: Experimental/settings autocomplete finalfixes

This included the fixes for obra's remarks on the initial pullrequest. Only thing I didn't do is left-align the output of the autodetection since we might remove it all anyway and it didn't look good too. Initial pullrequest comment:

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.