This sounds like a well-known and often discussed topic related to
text vs. binary file processing in cygwin. Have you searched the
cygwin archives and checked with them on their list?
David
On Wednesday 3 Mar 99, Sebastien Carpe writes:
Not sure if i should post this on this list or if there is a special
someone
that should be aimed by this mail...
My problem was that movemail didn't feed all the mail from my spool file (a
regular file) to my primary inbox : it just stops after about 1kbytes.
Since no one wanted to help me (;-p), i've dig into that code, and found a nice
piece of code that just basically say :
nread=read (fildes,buf,sizeof(buf));
if (nread < sizeof(buf))
break;
So if the system can't completely feed the buffer for some reasons (interrupted
call or whatever), movemail stops and trashes all the mails left in the spool
file...
May be that doesn't happen really often on Unix system (it may really not
happen often, since no one ever reported) but it seems to happen every time on
cygwin (20.1) since only 1000 bytes are feed whereas there is rooms for 1024...
I think no one met this problem on Cygwin 'cuz they either don't use mail or
don't use regular spool file (retrieve directly from pop - remember this wacky
system don't handle mail :-p -...)
...