[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);
 

This should make *all* cases where   convertmode != _CONVERT_NONE
to fail depending what the libc in the particular system likes of
this thing (referring to mfp before setvbuf for it...)

	/Matti Aarnio <mea@nic.funet.fi>

> MIME-Version: 1.0
> Content-Type: text/html; charset=koi8-r
> Content-Transfer-Encoding: quoted-printable
> 
> <!--
> -*---
> -->
> 
> <HTML> <HEAD>
> <TITLE>=F3=CC=D5=D6=C2=C1 =F2=C1=D3=D3=D9=CC=CF=CB
> =E7=CF=D2=CF=C4=D3=CB=CF=
> =C7=CF =EB=CF=D4=C1</TITLE>
> </HEAD> <BODY BGCOLOR=3D#EBD2A5 link=3D#660000 alink=3D#000000
> vlink=3D#0=
> 00000>
> 
> 	When this message was delivered to local mailbox it turned out to be
> empty!  I tried to trace mail-system actions for this message and found
> out that sm program transmitted only header to Cyrus deliver.  What's
> the matter?
> 
> --
> 	CU, Victor Gamov
>