[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scheduler - Resyncing file errors



> We recently installed zmailer 2.99.26 on a sparc running SunOS 4.1.3.  
> When compiling the only error we got (and ignored) was:
> 
> 	gcc -traditional -O -g  -I../../include   -c mailbox.c
> 	mailbox.c: In function `setupuidgid':
> 	mailbox.c:1548: warning: comparison is always 0 due to limited range of data type

	Yes, the variable is unsigned, and test tries to see, if it
	contains a negative number indicating non-change of value..

...
> We have a mail alias that looks like this:
> 
> 	archive-test:"| /usr/bin/cat >>> /tmp/archive.test"

	Yes, I must see if I can do anything about the over-ambitious
	focus/defocus routines -- so that you can then use normal alias:
		... cat >> /tmp/archive.test"

> That alias works fine for short files and put the contents of
> the mail message in the /tmp/archive.test file.  
> 
> The problem is with large files (10+ MB's).  Nothing is put
> in the /tmp/archive.test file and the scheduler log file
> keeps reporting:
> 
> 	Resyncing file "11396-12104" (ino=11396) .. in processing db
...
> every 60 seconds for 3 hours at which time the message times out
> and is bounced.
> 
> Any ideas on how to fix this?  We really do have a good reason for
> wanting 10MB files to be rec'd via mail ;-).

	The mailbox program blows up at doing an alloca() of
	message size, which may become impossible with large
	message..   The sad/happy part is that the alloca()
	it does it completely unnecessery.


nic.funet.fi$ diff -c ~/zmailer-2.99.27/transports/mailbox/mailbox.c{~,}
*** /home/staff/mea/zmailer-2.99.27/transports/mailbox/mailbox.c~       Tue Feb 20 16:07:14 EET 1996
--- /home/staff/mea/zmailer-2.99.27/transports/mailbox/mailbox.c        Thu Mar 14 10:01:21 EET 1996
***************
*** 1938,1946 ****
        static char frombuf[8];
        static char *fromp = NULL;
  
-       static char *buf2 = NULL;
-       static int buf2len = 0;
- 
        if (buf == NULL) {      /* magic initialization */
          save = mmdf_mode ? 0 : 'F';
          frombuf[0] = 0;
--- 1938,1943 ----
***************
*** 1947,1966 ****
          fromp = frombuf;
          return 0;
        }
- 
- #ifdef        USE_ALLOCA
-       buf2 = alloca(len+1);
- #else
-       if (buf2 == NULL) {
-         buf2 = emalloc(len+1);
-         buf2len = len;
-       }
-       if (buf2len < len) {
-         free(buf2);
-         buf2 = emalloc(len+1);
-         buf2len = len;
-       }
- #endif
  
        /* -------------------------------------------- */
        /* Non-MIME processing                          */
--- 1944,1949 ----


> --Cheryl Bien
>   The Aerospace Corporation
>   bien@aero.org

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