blob: 835c14128eb0bca320f17f92763563b786c738dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
diff -Naur src/mail.c.org src/mail.c
--- src/mail.c.org 2003-12-19 05:57:01.000000000 +0100
+++ src/mail.c 2004-01-20 16:47:09.000000000 +0100
@@ -1376,7 +1378,15 @@
mbox->old_mail_count = 0;
while(fgets(buf, sizeof(buf), f))
{
- if (is_multipart && !in_header)
+
+ if (is_From_line(mbox, buf))
+ {
+ mbox->mail_count += 1;
+ in_header = TRUE;
+ marked_read = FALSE;
+ is_multipart = FALSE;
+ }
+ else if (is_multipart && !in_header)
{
/* Skip to last line of multipart mail */
if (strncmp(buf,mpart_sep,strlen(mpart_sep))==0)
@@ -1387,12 +1397,6 @@
in_header = FALSE;
mbox->is_internal = FALSE;
}
- else if (is_From_line(mbox, buf))
- {
- mbox->mail_count += 1;
- in_header = TRUE;
- marked_read = FALSE;
- }
else if (in_header && status_is_old(buf) && !marked_read)
{
mbox->old_mail_count += 1;
|