Simplify the mail configuration.

- Introduce a database of known providers.
- Guess the mx server if the provider is not known.
- Guess default setting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29969 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2009-04-06 18:07:31 +00:00
parent cce423c203
commit ed6b5cc571
29 changed files with 1921 additions and 5 deletions
+11 -1
View File
@@ -10,6 +10,7 @@
#include "ConfigWindow.h"
#include "CenterContainer.h"
#include "Account.h"
#include "AutoConfigWindow.h"
#include <Application.h>
#include <ListView.h>
@@ -610,6 +611,10 @@ ConfigWindow::QuitRequested()
void
ConfigWindow::MessageReceived(BMessage *msg)
{
BRect autoConfigRect(0, 0, 400, 300);
BRect frame;
AutoConfigWindow *autoConfigWindow = NULL;
switch (msg->what) {
case kMsgAccountSelected:
{
@@ -627,7 +632,12 @@ ConfigWindow::MessageReceived(BMessage *msg)
}
case kMsgAddAccount:
{
Accounts::NewAccount();
frame = Frame();
autoConfigRect.OffsetTo(frame.left + (frame.Width() - autoConfigRect.Width()) / 2,
frame.top + (frame.Width() - autoConfigRect.Height()) / 2);
autoConfigWindow = new AutoConfigWindow(autoConfigRect,
this);
autoConfigWindow->Show();
break;
}
case kMsgRemoveAccount: