From owner-freebsd-hackers Sun Jun 4 12:40:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA29108 for hackers-outgoing; Sun, 4 Jun 1995 12:40:28 -0700 Received: from asstdc.scgt.oz.au (root@asstdc.scgt.oz.au [202.14.234.65]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA29102 for ; Sun, 4 Jun 1995 12:40:19 -0700 Received: (from imb@localhost) by asstdc.scgt.oz.au (8.6.12/BSD4.4) id FAA06409 for freebsd-hackers@freebsd.org; Mon, 5 Jun 1995 05:40:09 +1000 From: michael butler Message-Id: <199506041940.FAA06409@asstdc.scgt.oz.au> Subject: minor nits To: freebsd-hackers@freebsd.org Date: Mon, 5 Jun 1995 05:40:08 +1000 (EST) X-Mailer: ELM [version 2.4 PL24beta] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1477 Sender: hackers-owner@freebsd.org Precedence: bulk A couple of minor but annoying nits .. With some *$#@% MS-Mail to SMTP gateway software, it is possible (actually 100% guaranteed with some versions :-() that a UUCP "From_" line will contain something like "From Sun, Jun 4 ....". This breaks rmail. Eric sent me this patch .. *** bin/rmail.c~ Mon Mar 20 01:06:12 1995 --- bin/rmail.c Tue May 16 03:26:57 1995 *************** *** 211,216 **** --- 211,218 ---- /* Save off from user's address; the last one wins. */ for (p = addrp; *p && !isspace(*p); ++p); *p = '\0'; + if (*addrp == '\0') + addrp = "<>"; if (from_user != NULL) free(from_user); if ((from_user = strdup(addrp)) == NULL) The other case, in the other direction, is not so simple. Often I receive mail which bounced somewhere else and which is destined for a UUCP feed of mine. I suspect that something (Taylor's uux ?) kindly strips the "<>", which some sendmail configs seem to use instead of "Mailer-Daemon", because they are shell redirection characters leaving the equivalent of a command-line like .. uux - -r -z -a hostname!rmail user Because both "-aaddress" and "-a address" are accepted as the same thing, uux screws up. The only "cure" I've come up with, so far is to add a trailing dot to the sendmail rule so that it becomes .. Muucp, P=/usr/bin/uux, F=DFMhuU, S=12, R=22/42, M=2000000, A=uux - -r -z -a$f. $h!rmail ($u) .. in the "cf" file. Any other suggestions/patches would be most welcome, michael