Stat is only supposed to include un-marked-for-deletion messages for 
both the size and enumeration values, not just the size as qmail
is doing.


*** dist/qmail-1.03/qmail-pop3d.c       Mon Jun 15 03:53:16 1998
--- local/qmail-1.03/qmail-pop3d.c      Sun Jun 27 09:11:40 1999
***************
*** 150,160 ****
  {
    int i;
    unsigned long total;
   
    total = 0;
!   for (i = 0;i < numm;++i) if (!m[i].flagdeleted) total += m[i].size;
    puts("+OK ");
!   put(strnum,fmt_uint(strnum,numm));
    puts(" ");
    put(strnum,fmt_ulong(strnum,total));
    puts("\r\n");
--- 198,213 ----
  {
    int i;
    unsigned long total;
+   unsigned int count;
   
    total = 0;
!   count = 0;
!   for (i = 0;i < numm;++i) if (!m[i].flagdeleted) {
!     total += m[i].size;
!     count += 1;
!   }
    puts("+OK ");
!   put(strnum,fmt_uint(strnum,count));
    puts(" ");
    put(strnum,fmt_ulong(strnum,total));
    puts("\r\n");



-- 
Aaron Nabil

Reply via email to