X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/95f51977ddc18faa2e212f30c00a39540b39f325..ca67e7b465996afb3821d6a075c4dc6a7f0f5d52:/usr/src/usr.lib/sendmail/aux/rmail.c diff --git a/usr/src/usr.lib/sendmail/aux/rmail.c b/usr/src/usr.lib/sendmail/aux/rmail.c index 9306ef2ce6..a4446acb00 100644 --- a/usr/src/usr.lib/sendmail/aux/rmail.c +++ b/usr/src/usr.lib/sendmail/aux/rmail.c @@ -1,22 +1,6 @@ -/* -** Sendmail -** Copyright (c) 1983 Eric P. Allman -** Berkeley, California -** -** Copyright (c) 1983 Regents of the University of California. -** All rights reserved. The Berkeley software License Agreement -** specifies the terms and conditions for redistribution. -*/ - #ifndef lint -char copyright[] = -"@(#) Copyright (c) 1980 Regents of the University of California.\n\ - All rights reserved.\n"; -#endif not lint - -#ifndef lint -static char SccsId[] = "@(#)rmail.c 5.1 (Berkeley) 6/7/85"; -#endif not lint +static char sccsid[] = "@(#)rmail.c 4.8 (Berkeley) 5/15/86"; +#endif /* ** RMAIL -- UUCP mail server. @@ -46,14 +30,14 @@ main(argc, argv) char **argv; { FILE *out; /* output to sendmail */ - char lbuf[512]; /* one line of the message */ - char from[512]; /* accumulated path of sender */ - char ufrom[64]; /* user on remote system */ - char sys[64]; /* a system in path */ - char junk[512]; /* scratchpad */ + char lbuf[1024]; /* one line of the message */ + char from[512]; /* accumulated path of sender */ + char ufrom[512]; /* user on remote system */ + char sys[512]; /* a system in path */ + char junk[1024]; /* scratchpad */ char cmd[2000]; register char *cp; - register char *uf; /* ptr into ufrom */ + register char *uf = ufrom; /* ptr into ufrom */ int i; # ifdef DEBUG @@ -81,7 +65,6 @@ main(argc, argv) break; (void) sscanf(lbuf, "%s %s", junk, ufrom); cp = lbuf; - uf = ufrom; for (;;) { cp = index(cp+1, 'r'); @@ -116,7 +99,7 @@ main(argc, argv) } (void) strcat(from, uf); - (void) sprintf(cmd, "%s -ee -f%s", MAILER, from); + (void) sprintf(cmd, "%s -ee -f%s -i", MAILER, from); while (*++argv != NULL) { (void) strcat(cmd, " '");