Xenix Mail User Interfaces

Chip Salzenberg chip at ateng.UUCP
Tue Jul 19 02:46:46 AEST 1988


[followups directed to comp.unix.xenix]

According to mikej at dasys1.UUCP (Mike Johnston):
>This much I have learned recently. I have an Altos version of xenix which
>apparently uses a program called "execmail" which I think I similar to
>"sendmail". Smail doesn't know about this though ...

Well, I've never used Altos Xenix.  But SCO Xenix also has a program called
execmail (/usr/lib/mail/execmail, to be exact).  To install smail in a
SCO Xenix system:

    1.  Use "/usr/lib/mail/execmail.x" as smail's local mailer (LMAIL).

    2.  Install smail as /usr/bin/smail and /usr/bin/rmail.
	Keep your old rmail program, just for grins. :-)

    3.  Rename execmail to execmail.x.

    4.  Install my "execm" program as /usr/lib/mail/execmail.
	(A sharchive of execm.c follows this message.)

    5.  In /usr/lib/mail/mailrc, add the line "set execmail".
	This will pipe all mail through execmail, which is now just
	another name for smail.

I posted a complete set of patches for Smail 2.5 under Xenix to
comp.sources.misc.  In fact, I posted three versions.  :-(
See your local comp.sources.misc archive for a copy, or as a last resort,
email me at <uunet!ateng!chip>.

Remember:  Your mileage may vary.  Contents may have settled during shipment.

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  execm.c
# Wrapped by chip at ateng on Mon Jul 18 12:39:28 1988
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'execm.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'execm.c'\"
else
echo shar: Extracting \"'execm.c'\" \(747 characters\)
sed "s/^X//" >'execm.c' <<'END_OF_FILE'
X/*
X * execm.c
X *
X * This program is a substitute for Xenix's /usr/lib/mail/execmail.
X *
X * Written by Chip Salzenberg (chip at ateng.UUCP).
X * Released to Usenet on 01 Dec 1987.
X *
X * Do what you want with it; I'm not responsible for lost mail,
X * but I don't expect that this little program will lose anything.
X */
X
X#include <stdio.h>
X
Xmain(argc, argv)
Xint     argc;
Xchar    **argv;
X{
X	char *progname = argv[0];
X
X	/*
X	 * Drop the execmail options.
X	 */
X	while (argv[1][0] == '-')
X	{
X		switch (argv[1][1])
X		{
X		case 'f':
X		case 'h':
X			argv += 2;
X			break;
X		default:
X			++argv;
X			break;
X		}
X	}
X
X	argv[0] = progname;
X	execv("/usr/bin/smail", argv);
X	execv("/bin/smail", argv);
X
X	fprintf(stderr, "%s: can't execute smail!\n", progname);
X	exit(1);
X}
END_OF_FILE
if test 747 -ne `wc -c <'execm.c'`; then
    echo shar: \"'execm.c'\" unpacked with wrong size!
fi
# end of 'execm.c'
fi
echo shar: End of shell archive.
exit 0
-- 
Chip Salzenberg                <chip at ateng.uu.net> or <uunet!ateng!chip>
A T Engineering                My employer may or may not agree with me.
        You make me wanna break the laws of time and space
                    You make me wanna eat pork



More information about the Comp.unix.xenix mailing list