autoreply - How to ???

Chip Salzenberg chip at ateng.ateng.com
Tue Feb 21 09:31:14 AEST 1989


According to bjorn at sysadm.UUCP (Bjorn Satdeva):
>I need a good method to set up automagically reply with a preset
>messages to incomming mail on a few special accounts.
>
>The system here is is SysV without sendmail, but with smail added.

The "deliver" program, recently posted to comp.sources.unix and currently
at patchlevel eight, should be able to handle this.

For example, this user delivery file not only delivers messages normally,
it also replies automatically to all messages originating off-site.

	# User delivery file for auto-reply.

	echo "$1"               # Always deliver normally

	case $SENDER in
	*!*)
		mail $SENDER <<-EOF
			Subject: Automatic reply
			To: $SENDER

			This is an automatic reply.  Blah, blah.
		EOF
		;;
	esac
-- 
Chip Salzenberg             <chip at ateng.com> or <uunet!ateng!chip>
A T Engineering             Me?  Speak for my company?  Surely you jest!
	  "It's no good.  They're tapping the lines."



More information about the Comp.unix.wizards mailing list