Changeset dd43c62 for protocols/msn
- Timestamp:
- 2015-05-28T05:26:24Z (9 years ago)
- Branches:
- master
- Children:
- faeb521
- Parents:
- 3d31618
- git-author:
- Artem Savkov <artem.savkov@…> (28-03-15 01:23:42)
- git-committer:
- dequis <dx@…> (28-05-15 05:26:24)
- Location:
- protocols/msn
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r3d31618 rdd43c62 46 46 s->flags |= ACC_SET_OFFLINE_ONLY; 47 47 48 set_add(&acc->set, "mail_notifications", "false", set_eval_bool, acc); 48 s = set_add(&acc->set, "mail_notifications", "false", set_eval_bool, acc); 49 s->flags |= ACC_SET_OFFLINE_ONLY; 50 51 s = set_add(&acc->set, "notify_handle", NULL, NULL, acc); 52 s->flags |= ACC_SET_OFFLINE_ONLY | SET_NULL_OK; 49 53 50 54 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE | … … 82 86 msn_ns_connect(ic, server, 83 87 set_getint(&ic->acc->set, "port")); 88 89 if (set_getbool(&acc->set, "mail_notifications") && set_getstr(&acc->set, "notify_handle")) { 90 imcb_add_buddy(ic, set_getstr(&acc->set, "notify_handle"), NULL); 91 } 84 92 } 85 93 -
protocols/msn/ns.c
r3d31618 rdd43c62 394 394 395 395 if (inbox && folders) { 396 imcb_log(ic, 397 "INBOX contains %s new messages, plus %s messages in other folders.", inbox, 398 folders); 396 char *msg = g_strdup_printf( 397 "INBOX contains %s new messages, plus %s messages in other folders.", inbox, 398 folders); 399 imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0); 400 g_free(msg); 399 401 } 400 402 … … 408 410 409 411 if (from && fromname) { 410 imcb_log(ic, "Received an e-mail message from %s <%s>.", fromname, 411 from); 412 char *msg = g_strdup_printf("Received an e-mail message from %s <%s>.", 413 fromname, from); 414 imcb_notify_email(ic, set_getstr(&ic->acc->set, "notify_handle"), msg, 0, 0); 415 g_free(msg); 412 416 } 413 417
Note: See TracChangeset
for help on using the changeset viewer.