> -----Original Message-----
> From: Gabriel Ambuehl [mailto:[EMAIL PROTECTED]]
[snip]
> >            If whence is SEEK_END, the offset is set to the size of
> > the file
> >            plus offset bytes.
>
>
> > So I think it actually should read
> > lseek(0, 0L, SEEK_SET);
>
> I think I missed the most important point: lseek(0, 0L, SEEK_SET);
> won't do anything but fail cause seeking on pipes simply doesn't
> work:
>
[snip]

This has been fixed in the latest version (or at least according to
the AUTHORS/Changelog it has!). You are correct about the pipe stuff
though. This is the main stumbling block for using procmail on a
domain wide basis in the new versions of vpopmail because you cannot
do

| procmail blah blah blah | vdelivermail more blah

in your .qmail-default. I've editted my local vdelivermail so that it
doesnt use lseek on the incoming mail so that I can use procmail/pipes
to vdelivermail.

Marcus

--
Marcus Williams - http://www.onq2.com
Quintic Ltd, 39 Newnham Rd, Cambridge, CB3 9EY

Reply via email to