mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue