diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-18 22:42:48 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-19 00:32:38 +0800 |
commit | ec170e47fdeb57272110fa3ef9164a98d8b69d84 (patch) | |
tree | c3442ae4984e847e664af1cbd4c9305d9c8e8c6b /mail/e-mail-session.c | |
parent | e555c2bff07d0f6d2778117cd28c3eb04f381f75 (diff) | |
download | gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.gz gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.tar.zst gsoc2013-evolution-ec170e47fdeb57272110fa3ef9164a98d8b69d84.zip |
Move more account utilities to e-account-utils.c.
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index f443007502..481dca8a53 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -47,6 +47,7 @@ #include <libedataserver/e-flag.h> #include "e-util/e-util.h" +#include "e-util/e-account-utils.h" #include "e-util/e-alert-dialog.h" #include "e-util/e-util-private.h" @@ -602,7 +603,7 @@ mail_session_get_password (CamelSession *session, if (!strcmp(item, "popb4smtp_uri")) { /* not 100% mt safe, but should be ok */ if (url - && (account = mail_config_get_account_by_transport_url (url))) + && (account = e_get_account_by_transport_url (url))) ret = g_strdup (account->source->url); else ret = g_strdup (url); @@ -618,9 +619,9 @@ mail_session_get_password (CamelSession *session, gboolean remember; if (url) { - if ((account = mail_config_get_account_by_source_url (url))) + if ((account = e_get_account_by_source_url (url))) config_service = account->source; - else if ((account = mail_config_get_account_by_transport_url (url))) + else if ((account = e_get_account_by_transport_url (url))) config_service = account->transport; } |