tpop3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tpop3d-discuss] STAT always gives +OK x 0


From: Chris Lightfoot
Subject: Re: [tpop3d-discuss] STAT always gives +OK x 0
Date: Thu, 27 Sep 2001 01:04:40 +0100
User-agent: Mutt/1.2.5i

On Thu, Sep 27, 2001 at 12:20:35AM +0200, Jakob Hirsch wrote:
> Hello,
> 
> My tpop3d 1.3.4 returns to a STAT the correct msg count, but for octets 
> always 0. This is no problem
> the most MUAs, but some software refuses to retrieve mail in this case. My C 
> is not good enough to
> fix this, so I worked around it by simply sending the msg count curmbox->num 
> twice in pop3.c. That
> does what I need but maybe it should be fixed anytime.

Apologies. This is a bug in the code which handles maildir
mailboxes. I have fixed it in my CVS copy, which will
shortly be the relaeased 1.3.5, but if you wish to patch
it in an existing copy, then please apply the patch below:


diff -u -r1.2 maildir.c
--- maildir.c   2001/07/08 16:57:09     1.2
+++ maildir.c   2001/09/27 00:03:49
@@ -80,6 +80,8 @@
             struct indexpoint pt;
             maildir_make_indexpoint(&pt, filename, st.st_size, st.st_mtime);
             mailbox_add_indexpoint(M, &pt);
+            /* Hack: accumulate size of messages. */
+            M->st.st_size += st.st_size;
         }
         free(filename);
     }


-- 
 Just because you're paranoid doesn't mean they aren't out to get you


reply via email to

[Prev in Thread] Current Thread [Next in Thread]