X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr.c;h=13383042b83922be87371868640ba9dc8538882f;hp=7a18d5169a1dcead477bd06398b81de8a9f1d73b;hb=b09daad954384d34091b51a04eda7fd3a57a5f22;hpb=798cf1721f8140485800ba24fd20c58159de1c3b diff --git a/src/modest-account-mgr.c b/src/modest-account-mgr.c index 7a18d51..1338304 100644 --- a/src/modest-account-mgr.c +++ b/src/modest-account-mgr.c @@ -28,9 +28,10 @@ */ #include -#include -#include -#include +#include "modest-proto.h" +#include "modest-marshal.h" +#include "modest-account-keys.h" +#include "modest-account-mgr.h" /* 'private'/'protected' functions */ static void modest_account_mgr_class_init (ModestAccountMgrClass * klass); @@ -357,6 +358,7 @@ modest_account_mgr_add_server_account (ModestAccountMgr * self, { ModestAccountMgrPrivate *priv; gchar *key; + ModestProtoType proto_type = MODEST_PROTO_TYPE_ANY; g_return_val_if_fail (self, FALSE); g_return_val_if_fail (name, FALSE); @@ -390,6 +392,14 @@ modest_account_mgr_add_server_account (ModestAccountMgr * self, modest_conf_set_string (priv->modest_conf, key, null_means_empty (proto), NULL); g_free (key); + /* type */ + key = get_account_keyname (name, MODEST_ACCOUNT_TYPE, TRUE); + proto_type = modest_proto_type (proto); + modest_conf_set_string (priv->modest_conf, key, + (proto_type == MODEST_PROTO_TYPE_TRANSPORT) ? "transport" : "store", + NULL); + g_free (key); + return TRUE; }