1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

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
This commit is contained in:
Timo Sirainen 2000-06-28 20:46:46 +00:00 committed by cras
parent 8fc1e0535c
commit d4f8ad2c3f

View File

@ -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);