From d4f8ad2c3f54f2a91c9fbb2616d28fcfd98d7924 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 28 Jun 2000 20:46:46 +0000 Subject: [PATCH] Don't count messages that have "FOLDER INTERNAL DATA" text in their subject. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@389 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/statusbar-items.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 5c4f062a..1039a5c0 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -605,6 +605,11 @@ static int get_mail_count(void) while (fgets(str, sizeof(str), f) != NULL) { if (strncmp(str, "From ", 5) == 0) count++; + if (strncmp(str, "Subject: ", 9) == 0 && + strstr(str, "FOLDER INTERNAL DATA")) { + /* don't count these. */ + count--; + } } fclose(f);