diff options
author | Not Zed <NotZed@Ximian.com> | 2003-12-10 10:16:07 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-12-10 10:16:07 +0800 |
commit | 1647f967b488c4109b05e83af421901c1ac2821d (patch) | |
tree | 6c293d74bd345ce5564403b9ead046fd5fcda662 /mail/mail-component.c | |
parent | 4a160e0e78504d65508156b7635b5689b41681a6 (diff) | |
download | gsoc2013-evolution-1647f967b488c4109b05e83af421901c1ac2821d.tar.gz gsoc2013-evolution-1647f967b488c4109b05e83af421901c1ac2821d.tar.zst gsoc2013-evolution-1647f967b488c4109b05e83af421901c1ac2821d.zip |
separeate view_menu unreffing from view_instance. fixes a runtime warning.
2003-12-10 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_activate): separeate view_menu
unreffing from view_instance. fixes a runtime warning.
** See bug #51718.
* mail-component.c (em_uri_to_camel): handle an e-uri which has an
account uid which isn't in user@host format.
svn path=/trunk/; revision=23897
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index 3967ed8a1b..ea3d0e4c73 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -758,16 +758,19 @@ char *em_uri_to_camel(const char *euri) return g_strdup(euri); } - g_assert(eurl->user != NULL); g_assert(eurl->host != NULL); - if (strcmp(eurl->user, "local") == 0 && strcmp(eurl->host, "local") == 0) { - curi = g_strdup_printf("mbox:%s/.evolution/mail/local#%s", g_get_home_dir(), eurl->path[0]=='/'?eurl->path+1:eurl->path); - camel_url_free(eurl); - return curi; - } + if (eurl->user != NULL) { + if (strcmp(eurl->user, "local") == 0 && strcmp(eurl->host, "local") == 0) { + curi = g_strdup_printf("mbox:%s/.evolution/mail/local#%s", g_get_home_dir(), eurl->path[0]=='/'?eurl->path+1:eurl->path); + camel_url_free(eurl); + return curi; + } - uid = g_strdup_printf("%s@%s", eurl->user, eurl->host); + uid = g_strdup_printf("%s@%s", eurl->user, eurl->host); + } else { + uid = g_strdup(eurl->host); + } accounts = mail_config_get_accounts(); account = e_account_list_find(accounts, E_ACCOUNT_FIND_UID, uid); |