Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 1995 05:40:08 +1000 (EST)
From:      michael butler <imb@scgt.oz.au>
To:        freebsd-hackers@freebsd.org
Subject:   minor nits
Message-ID:  <199506041940.FAA06409@asstdc.scgt.oz.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506041940.FAA06409>