[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem: empty message body
> > Hi!
> > I have a big problem -- some letters delivered to our mail relay
> > machine have only headers line with empty message body. We use
> > Zmailer-2.99.50s11 and Cyrus-imapd-1.5.14 as local deliver agent.
> > Following example of such message:
> I have scratched my head with this, and only possible fault
> I can find is (cut&paste):
> diff -u ...../transports/sm/sm.c transports/sm/sm.c
> @@ -829,10 +851,8 @@
> #if !(defined(HAVE_MMAP) && defined(TA_USE_MMAP))
> char iobuf[BUFSIZ];
> FILE *mfp = fdopen(mfd,"r");
> - fseek(mfp,(off_t)(dp->msgbodyoffset),SEEK_SET);
> setvbuf(mfp, iobuf, _IOFBF, sizeof(iobuf));
> + fseek(mfp, dp->msgbodyoffset, SEEK_SET);
> #define MFPCLOSE i = dup(mfd); fclose(mfp); dup2(i,mfd); close(i);
Matti, thank you very much! It really helped to solve our problem!
CU, Victor Gamov