Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 1999 00:39:16 -0700
From:      Josef Grosch <jgrosch@ontario.mooseriver.com>
To:        dts <trisa@its.ac.id>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how ?
Message-ID:  <19990630003916.B4180@ontario.mooseriver.com>
In-Reply-To: <002601beda30$364305c0$05f82eca@syseng.its.ac.id>; from dts on Fri, Jul 30, 1999 at 09:06:32AM %2B0700
References:  <002601beda30$364305c0$05f82eca@syseng.its.ac.id>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 30, 1999 at 09:06:32AM +0700, dts wrote:
> i am trisa from indonesia
> i want to cretate automatic e-mail reply using freebsd server so s, but i
> don't know how to do that. Is anyone can help me 

Have a look at /etc/aliases. Look at the entry "msgs: "| /usr/bin/msgs -s"

What this means is that when an email messages comes through for msgs it
gets redirected (read piped) to /usr/bin/msgs. The thing to keep in mind is
that to any program that the input is being piped to sees the email coming
in on STDIN. Your best bet is to write a Perl script that reads from STDIN
and process the lines from there. It's not really tricky as long as you
look at the problem in the right way.

"Sometimes you get shown the light 
in strangest of places 
if you look at it right"

Josef

-- 
Josef Grosch           | Another day closer to a |    FreeBSD 3.2
jgrosch@MooseRiver.com |   Micro$oft free world  | UNIX for the masses



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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