aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c
index ab92f30d..130f1c91 100644
--- a/protocols/msn/ns.c
+++ b/protocols/msn/ns.c
@@ -393,9 +393,11 @@ 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) {
- imcb_log(ic,
- "INBOX contains %s new messages, plus %s messages in other folders.", inbox,
- folders);
+ char *msg = g_strdup_printf(
+ "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);
@@ -407,8 +409,10 @@ 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) {
- imcb_log(ic, "Received an e-mail message from %s <%s>.", fromname,
- from);
+ 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);
}
g_free(from);