Commit 3f69e162 3f69e162d9849ef1783a662011bf25ca71a1d7a5 by Sergey Poznyakoff

Bugfix

* libproto/mbox/mboxscan.c (mbox_scan_internal): Fix
body size calculation: -1 was returned for empty body.
Bug reported by Con Tassios <ct@swin.edu.au>.
* po/POTFILES.in: Add mail/mailvar.c
1 parent 1c1539ff
......@@ -385,15 +385,15 @@ mbox_scan_internal (mu_mailbox_t mailbox, mbox_message_t mum,
}
}
newline = nl;
newline = (inbody && lines) ? nl : 0;
/* Every 100 mesgs update the lock, it should be every minute. */
if ((mud->messages_count % 100) == 0)
mu_locker_touchlock (mailbox->locker);
/* Ping them every 1000 lines. Should be tunable. */
if (flags & MBOX_SCAN_NOTIFY)
if (((lines +1) % 1000) == 0)
if (((lines + 1) % 1000) == 0)
DISPATCH_PROGRESS (mailbox, mud);
} /* while */
......
......@@ -112,6 +112,7 @@ mail/if.c
mail/inc.c
mail/mail.c
mail/mailline.c
mail/mailvar.c
mail/msgset.y
mail/next.c
mail/previous.c
......