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:
parent
8fc1e0535c
commit
d4f8ad2c3f
@ -605,6 +605,11 @@ static int get_mail_count(void)
|
|||||||
while (fgets(str, sizeof(str), f) != NULL) {
|
while (fgets(str, sizeof(str), f) != NULL) {
|
||||||
if (strncmp(str, "From ", 5) == 0)
|
if (strncmp(str, "From ", 5) == 0)
|
||||||
count++;
|
count++;
|
||||||
|
if (strncmp(str, "Subject: ", 9) == 0 &&
|
||||||
|
strstr(str, "FOLDER INTERNAL DATA")) {
|
||||||
|
/* don't count these. */
|
||||||
|
count--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Loading…
Reference in New Issue
Block a user