aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/ns.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-01-05 21:15:32 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-01-05 21:15:32 +0000
commit1febf5c93b231942cd9cac8ac6a5a0d830c581cc (patch)
treeb9ab00aa08457cbf0b91301f712d8b3af1f601e4 /protocols/msn/ns.c
parent6e68a52f92dea3a75ad4daad4867f9542506deae (diff)
Added "mail_notifications" setting. Who needs those notifications anyway?
Closes: #338.
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r--protocols/msn/ns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c
index 9bd7f152..3735aad6 100644
--- a/protocols/msn/ns.c
+++ b/protocols/msn/ns.c
@@ -642,7 +642,7 @@ static int msn_ns_message( gpointer data, char *msg, int msglen, char **cmd, int
char *inbox = msn_findheader( body, "Inbox-Unread:", blen );
char *folders = msn_findheader( body, "Folders-Unread:", blen );
- if( inbox && folders )
+ if( inbox && folders && set_getbool( &ic->acc->set, "mail_notifications" ) )
{
imcb_log( ic, "INBOX contains %s new messages, plus %s messages in other folders.", inbox, folders );
}
@@ -652,7 +652,7 @@ static int msn_ns_message( gpointer data, char *msg, int msglen, char **cmd, int
char *from = msn_findheader( body, "From-Addr:", blen );
char *fromname = msn_findheader( body, "From:", blen );
- if( from && fromname )
+ if( from && fromname && set_getbool( &ic->acc->set, "mail_notifications" ) )
{
imcb_log( ic, "Received an e-mail message from %s <%s>.", fromname, from );
}