On Thu, Jul 05, 2001 at 09:06:55PM -0600, Charles Cazabon wrote:
> qftang <[EMAIL PROTECTED]> wrote:
>
> > now i am doing some development based on qmail,and i want to get the mail
> > size in the file qmail-local.c,how can i do that.
>
> If you mean you're writing a program called for delivery from a .qmail file by
> qmail-local, the message file descriptor is seekable -- a quick hack would be
> to seek to the end and do an ftell() or equivalent.
Check the archives for 'sizechecker' in that case, which uses fstat()
which is even better than seek+ftell.
Greetz, Peter
--
Against Free Sex! http://www.dataloss.nl/Megahard_en.html