From owner-freebsd-current Sat Sep 16 08:10:14 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA02267 for current-outgoing; Sat, 16 Sep 1995 08:10:14 -0700 Received: from asstdc.scgt.oz.au (root@asstdc.scgt.oz.au [202.14.234.65]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA02260 for ; Sat, 16 Sep 1995 08:10:07 -0700 Received: (from imb@localhost) by asstdc.scgt.oz.au (8.6.12/BSD4.4) id BAA08149 for current@freebsd.org; Sun, 17 Sep 1995 01:06:20 +1000 From: michael butler Message-Id: <199509161506.BAA08149@asstdc.scgt.oz.au> Subject: rmail and brain-dead mail systems .. patch enclosed To: current@freebsd.org Date: Sun, 17 Sep 1995 01:06:18 +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: 713 Sender: owner-current@freebsd.org Precedence: bulk Will someone please add this patch to bin/rmail/rmail.c. Some of us have to deal with mail from brain-dead gateways (notably MS-mail) that produce "From " lines without an address .. e.g. .. From Sun Sep 17 01:10:23 1995 Received: from ... .. this throws rmail into a spin :-( The patch recommended by Eric Allman is .. *** rmail.c~ Mon Mar 20 01:06:12 1995 --- 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)