From 446ebb801af75ec97c9e54be37c896fac9967bb8 Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 9 Apr 1997 18:47:53 +0000 Subject: [PATCH] Use the value of UU_MACHINE from the environment if present. This makes the Received header lines more accurate, if rmail is called from Taylor UUCP's uuxqt. (And we ship Taylor UUCP...) Change #define TAYLOR_ENV into #undef TAYLOR_ENV if this should annoy you :-) --- bin/rmail/rmail.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c index 188193421e0..399d478c8ed 100644 --- a/bin/rmail/rmail.c +++ b/bin/rmail/rmail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmail.c,v 1.6 1997/04/07 10:12:07 deraadt Exp $ */ +/* $OpenBSD: rmail.c,v 1.7 1997/04/09 18:47:53 felix Exp $ */ /* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95"; #else -static char rcsid[] = "$OpenBSD: rmail.c,v 1.6 1997/04/07 10:12:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rmail.c,v 1.7 1997/04/09 18:47:53 felix Exp $"; #endif #endif /* not lint */ @@ -89,6 +89,8 @@ static char rcsid[] = "$OpenBSD: rmail.c,v 1.6 1997/04/07 10:12:07 deraadt Exp $ void err __P((int, const char *, ...)); void usage __P((void)); +#define TAYLOR_ENV /* use UU_MACHINE if present */ + int main(argc, argv) int argc; @@ -244,6 +246,15 @@ main(argc, argv) args[i++] = "-oi"; /* Ignore '.' on a line by itself. */ /* set from system and protocol used */ +#ifdef TAYLOR_ENV + { + char *uu_machine; + uu_machine = getenv("UU_MACHINE"); + /* set by Taylor UUCP's uuxqt */ + if (uu_machine) + from_sys = uu_machine; + } +#endif if (from_sys == NULL) (void)snprintf(buf, sizeof(buf), "-p%s", domain); else if (strchr(from_sys, '.') == NULL) -- 2.20.1