Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!usc!sdd.hp.com!ucsd!ucbvax!ENG.UMD.EDU!ziegast From: ziegast@ENG.UMD.EDU (Eric Ziegast) Newsgroups: comp.mail.mh Subject: Re: multiple messages in one Message-ID: <9011292317.AA05330@abyss.eng.umd.edu> Date: 29 Nov 90 23:17:27 GMT References: <1990Nov28.232242.12410@midway.uchicago.edu> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 61 Laurie Abbott writes: >Chan Wilson [Animal] writes: >+Anyhow, here's the problem. Mail messages are coming in, with sometimes >+several in one message. I've just upgraded to MH6.7, and am using >+slocal to direct mail. MH is running on a sun4, sunos4.1. >+ >+Can someone help? It's not a consistent problem; some messages come >+in solo (like they're supposed to), others come in tandem. Randomness... > >if a patch for this problem was posted, please post it again, as i >missed it. It would be nice if you specified how your mail is incorperated. Was it inc? slocal? If it was slocal, what line in your .maildelivery actually processed the mail? Anyway, I am assuming that you are using slocal's file (>) action to store your mail. Apparently, the mail being filed is not separated with the required "\n\nFrom" which is used by BSD Mail as a message separator, but instead it is separated with a "\nFrom". When a mail is "filed", the following patch will prepend a "\n" to the message to ensure that it is correctly separated. It has been tested on SunOS 4.0.3, SunOS 4.1, and Ultrix 4.1. There is another patch that was posted that fixes a couple other problems as well as this, but when I applied it and recompiled slocal, for some reason BSD Mail could not use the maildrop. ________________________________________________________________________ Eric W. Ziegast, University of Merryland, Engineering Computing Services ziegast@eng.umd.edu - Eric@(301.405.3689) ############################### CUT HERE ######################### *** uip/slocal.c.orig Fri Nov 2 09:02:11 1990 --- uip/slocal.c Thu Nov 29 18:14:24 1990 *************** *** 37,42 **** --- 37,43 ---- #endif not V7 #include #include + #include #define NVEC 100 *************** *** 848,853 **** --- 849,860 ---- adorn ("", "unable to open:"); return NOTOK; } + + /* The following line prepends a "\n" in front of the filed message + * if the mail drop already contains messages. This ensures proper + * separation for UUCP style mail drops. */ + if (lseek (md, 0L, SEEK_END) > 0) + (void) write(md,"\n",1); (void) lseek (fd, 0L, 0); if (mbx_copy (mailbox, md, fd, mapping, bp, verbose) == NOTOK) {