aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mail-notification/mail-notification.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index fb2d973dcd..99224eb288 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -373,18 +373,15 @@ new_notify_status (EMEventTargetFolder *t)
gchar *text;
if (!status_count) {
- EAccount *account;
+ CamelService *service;
+ const gchar *store_name;
gchar *folder_name;
- const gchar *uid;
- uid = camel_service_get_uid (CAMEL_SERVICE (t->store));
- account = e_get_account_by_uid (uid);
+ service = CAMEL_SERVICE (t->store);
+ store_name = camel_service_get_display_name (service);
- if (account != NULL)
- folder_name = g_strdup_printf (
- "%s/%s", account->name, t->folder_name);
- else
- folder_name = g_strdup (t->folder_name);
+ folder_name = g_strdup_printf (
+ "%s/%s", store_name, t->folder_name);
status_count = t->new;