Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ángel
evolution
Commits
0341ec5c
Commit
0341ec5c
authored
May 03, 2011
by
Matthew Barnes
Committed by
Rodrigo Moya
Jun 29, 2011
Browse files
em-utils.c: Simplify guess_account_from_folder().
parent
390555c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mail/em-utils.c
View file @
0341ec5c
...
...
@@ -2218,21 +2218,13 @@ em_utils_url_unescape_amp (const gchar *url)
static
EAccount
*
guess_account_from_folder
(
CamelFolder
*
folder
)
{
CamelService
*
service
;
CamelStore
*
parent_store
;
EAccount
*
account
;
CamelURL
*
url
;
gchar
*
source_url
;
parent_store
=
camel_folder_get_parent_store
(
folder
);
service
=
CAMEL_SERVICE
(
parent_store
);
CamelStore
*
store
;
const
gchar
*
uid
;
url
=
camel_service_get_camel_url
(
service
);
source_url
=
camel_url_to_string
(
url
,
CAMEL_URL_HIDE_ALL
);
account
=
e_get_account_by_source_url
(
source_url
);
g_free
(
source_url
);
store
=
camel_folder_get_parent_store
(
folder
);
uid
=
camel_service_get_uid
(
CAMEL_SERVICE
(
store
));
return
account
;
return
e_get_
account
_by_uid
(
uid
)
;
}
static
EAccount
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment