aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-05-08 01:16:37 -0300
committerdequis <dx@dxzone.com.ar>2015-05-28 02:26:30 -0300
commit0864a524c9fd1184874d550216beb49f6a0bef55 (patch)
treea2a19d6787dd8b7b479fa43378994233aad839e1 /protocols/msn/ns.c
parentfaeb521e66d825e68eb7f9eef8f32ddabbfd9c49 (diff)
imcb_notify_email: change parameters to take a format string
Saves some messing with g_strdup_printf for the callers, and flags/sent_at weren't used anyway. Also check if the mail_notifications setting is enabled
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c
index 130f1c91..766c31e1 100644
--- a/protocols/msn/ns.c
+++ b/protocols/msn/ns.c
@@ -393,11 +393,9 @@ int msn_ns_message(struct msn_data *md, char *msg, int msglen, char **cmd, int n
char *folders = get_rfc822_header(body, "Folders-Unread:", blen);
if (inbox && folders) {
- char *msg = g_strdup_printf(
+ imcb_notify_email(ic,
"INBOX contains %s new messages, plus %s messages in other folders.", inbox,
folders);
- imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0);
- g_free(msg);
}
g_free(inbox);
@@ -409,10 +407,7 @@ int msn_ns_message(struct msn_data *md, char *msg, int msglen, char **cmd, int n
char *fromname = get_rfc822_header(body, "From:", blen);
if (from && fromname) {
- char *msg = g_strdup_printf("Received an e-mail message from %s <%s>.",
- fromname, from);
- imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0);
- g_free(msg);
+ imcb_notify_email(ic, "Received an e-mail message from %s <%s>.", fromname, from);
}
g_free(from);